
Morphik多模态数据库的模型上下文协议(MCP)服务器实现。
概览
Morphik多模态数据库的模型上下文协议(MCP)服务器实现。 该MCP服务器允许Claude及其他兼容MCP的AI助手与Morphik数据库系统交互,实现以下功能: - 文档摄取(文本和文件)- 文档检索(基于查询相关性)- 利用LLM驱动的补全文档查询- 文档管理(列表、获取、删除)- 文件系统导航和路径文件导入 服务器支持两种传输模式:- (默认):标准输入/输出,用于 Claude Desktop 及其他 MCP 客户端 - :HTTP/HTTPS 端点,用于基于网页的集成 你需要访问以下任一:- 运行在localhost:8000上的本地Morphik服务器,或者- Morphik云平台 服务器默认运行于标准输入/输出流,并可与 Claude 等 MCP 客户端使用。 关于HTTP/HTTPS模式(可流媒体),请参见streamable_https.md文档。 将此添加到您的Claude桌面配置文件中:
概述(AI 翻译)
Morphik多模态数据库的模型上下文协议(MCP)服务器实现。
概述
该MCP服务器允许Claude及其他兼容MCP的AI助手与Morphik数据库系统交互,实现以下功能:
- 文档摄取(文本和文件)
- 文档检索(根据查询相关性)
- 利用LLM驱动的补全进行文档查询
- 文档管理(列出、获取、删除)
- 文件系统导航和从路径导入文件
服务器支持两种传输模式:
- stdio(默认):用于Claude Desktop及其他MCP客户端的标准输入/输出
- 可流式 HTTPS:用于基于网页集成的 HTTP/HTTPS 端点
先修条件
你需要访问以下其中之一:
- 运行在localhost:8000上的本地Morphik服务器,或
- Morphik云平台
安装与使用
选项1:直接用NPX运行(推荐)
选项2:全局安装
选项3:本地开发
服务器默认运行于标准输入/输出流,并可与 Claude 等 MCP 客户端使用。
关于HTTP/HTTPS模式(可流媒体),请参见streamable_https.md文档。
使用 Claude Desktop
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
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)
# 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
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
# 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
{
"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
安装
npx -y morphik-mcp配置
{
"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"]
}
}
}