Morphik MCP logo

Morphik MCP

Organization
morphik-org

A Model Context Protocol (MCP) server implementation for Morphik multi-modal database.

Publishermorphik-org
Repositorymorphik-mcp
LanguageTypeScript
Forks
12
Stars
24
Available tools
0
Transport typestdio
Categories
Links
  • Connect tools to AI workflows

    Morphik MCP exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    24 stars and 12 forks from the linked repository.

Morphik MCP

A Model Context Protocol (MCP) server implementation for Morphik multi-modal database.

Overview

This MCP server allows Claude and other MCP-compatible AI assistants to interact with the Morphik database system, enabling:

  • Document ingestion (text and files)
  • Document retrieval (by relevance to queries)
  • Document querying with LLM-powered completions
  • Document management (listing, getting, deleting)
  • File system navigation and file ingestion from paths

The server supports two transport modes:

  • stdio (default): Standard input/output for use with Claude Desktop and other MCP clients
  • Streamable HTTPS: HTTP/HTTPS endpoint for web-based integrations

Prerequisites

You need access to either:

  • A local Morphik server running on localhost:8000, or
  • The Morphik cloud platform

Installation & Usage

Option 1: Run directly with npx (recommended)

bash
# Connect to local Morphik server
npx morphik-mcp

# Connect to Morphik cloud platform (replace with your actual URI)
npx morphik-mcp --uri=https://api.morphik.ai

# Specify allowed directories for file operations (comma-separated)
npx morphik-mcp --allowed-dir=~/Documents,~/Downloads

Option 2: Global installation

bash
npm install -g morphik-mcp

# Connect to local Morphik server
morphik-mcp

# Connect to Morphik cloud platform
morphik-mcp --uri=https://api.morphik.ai

# Specify allowed directories for file operations
morphik-mcp --allowed-dir=~/Documents,~/Downloads

Option 3: Local development

bash
# Clone the repository
git clone https://github.com/morphik-org/morphik-npm-mcp.git
cd morphik-npm-mcp

# Install dependencies
npm install

# Build the project
npm run build

# Start the server (local Morphik)
npm start

# Start the server with file operations enabled
node build/index.js --allowed-dir=~/Documents,~/Downloads

The server runs on standard input/output streams by default and can be used with MCP clients like Claude.

For HTTP/HTTPS mode (streamable), see the streamable_https.md documentation.

Usage with Claude Desktop

Add this to your Claude Desktop configuration file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json

json
{
  "mcpServers": {
    "morphik-local": {
      "command": "npx",
      "args": ["-y", "morphik-mcp"]
    },
    "morphik-cloud": {
      "command": "npx",
      "args": ["-y", "morphik-mcp", "--uri=https://api.morphik.ai"]
    },
    "morphik-with-files": {
      "command": "npx",
      "args": ["-y", "morphik-mcp", "--allowed-dir=~/Documents,~/Downloads"]
    }
  }
}

MCP Tools

See MCP_TOOLS.md for detailed parameter docs and response formats.

The server currently provides the following tools, with additional capabilities on the way:

1. Document Ingestion

  • ingest-text: Ingest a text document into Morphik

    • Parameters: content, filename (optional), metadata (optional), apiKey
  • ingest-file-from-path: Ingest a file from the server's filesystem into Morphik

    • Parameters: path, metadata (optional), rules (optional), folderName (optional), endUserId (optional), useColpali (optional)
  • ingest-file-from-base64: Upload a file by providing its filename plus base64-encoded bytes (works in HTTP transports where disk access isn't possible)

    • Parameters: filename, base64Content, metadata (optional), rules (optional), folderName (optional), endUserId (optional), useColpali (optional)
  • ingest-files-from-paths: Batch ingest multiple files from the server's filesystem

    • Parameters: paths, metadata (optional), rules (optional), folderName (optional), endUserId (optional), useColpali (optional)

2. Document Retrieval & Navigation

  • retrieve-chunks: Retrieve the most relevant "pages" (text or image chunks) for a query, identical to the find_relevant_pages tool in @morphik-app

    • Parameters: query, filters (optional), k (optional), minScore (optional), folderName (optional), endUserId (optional), useColpali/useReranking (optional), padding (optional for adjacent context)
  • retrieve-docs: Retrieve relevant documents from Morphik based on a query

    • Parameters: query, filters (optional), k (optional), minScore (optional), folderName (optional), endUserId (optional)
  • search-documents: Search for documents by filename or title using full-text search

    • Parameters: query, limit (optional, 1-100), folderName (optional), endUserId (optional)
  • get-pages-in-range: Fetch an inclusive range of pages (max 10) from a document, matching get_all_pages_within_range_from_document in @morphik-app

    • Parameters: documentId, startPage, endPage, folderName (optional), endUserId (optional)

3. Document Management & Metadata

  • get-document: Get a specific document from Morphik by ID

    • Parameters: documentId, apiKey
  • delete-document: Delete a document from Morphik by ID

    • Parameters: documentId, apiKey
  • check-ingestion-status: Check the processing status for an ingested document

    • Parameters: documentId, apiKey
  • morphik-filters: View, set, or clear typed metadata filters that automatically apply to retrieval/list operations (supports eq, regex, number_range, date_range)

    • Parameters: action, expression/rules payload, logic (optional)
  • list-documents: Updated tool using /documents/list_docs with include_total_count, return_documents, fields, and folder/end-user scoping

    • Parameters: skip, limit, filters/metadataFilters, get_count, folderName(s), endUserId, sortBy/sortDirection, fields

4. File System Navigation

  • list-allowed-directories: List directories that the server is allowed to access

    • Parameters: none
  • list-directory: List files and subdirectories in a specific directory

    • Parameters: path
  • search-files: Search for files matching a pattern in a directory and its subdirectories

    • Parameters: path, pattern, excludePatterns (optional)
  • get-file-info: Get detailed information about a file or directory

    • Parameters: path

File Operations Security

For security reasons, file operations are restricted to directories explicitly allowed when starting the server using the --allowed-dir parameter. If no directories are specified, only the user's home directory will be accessible.

The server validates all file paths to ensure they're within allowed directories, preventing access to sensitive system files. Symlinks are also checked to ensure they don't point outside allowed directories.

Development

Build the project:

bash
npm run build

Run tests:

bash
npm test

Run manual tests:

bash
npm run test:manual

License

ISC

Installation

TypingMind
Prerequisites:

Node.js 18+

{
  "mcpServers": {
    "morphik-org-morphik-npm-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@morphik/mcp"
      ]
    }
  }
}

Use Morphik MCP MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Morphik MCP is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Morphik MCP as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Morphik MCP MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "morphik-org-morphik-npm-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@morphik/mcp"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Morphik MCP MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Morphik MCP MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Morphik MCP to help me with this task?
Morphik MCP
Sure. I read it.
Here is what I found using Morphik MCP.

Frequently asked questions

What is the Morphik MCP MCP server used for?

Morphik MCP is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Morphik MCP MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Morphik MCP with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Morphik MCP MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Morphik MCP connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Morphik MCP MCP to TypingMind?

Morphik MCP runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Morphik MCP MCP provide in TypingMind?

Morphik MCP exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Morphik MCP MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Morphik MCP requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇