A Model Context Protocol (MCP) server that provides seamless integration with Moorcheh's Embedding, Vector Store, Search, and Gen AI Answer services. This server enables you to interact with Moorcheh's comprehensive AI capabilities including document embedding, vector storage, semantic search, and AI-powered answer generation through the Model Context Protocol.
There are two ways to use the Moorcheh MCP server:
The easiest way to get started:
# Set your API key and run directly
MOORCHEH_API_KEY=your_api_key_here npx -y @moorchehai/mcpIf you prefer to clone and run locally:
-
Clone the repository
git clone https://github.com/moorcheh-ai/moorcheh-mcp.git cd moorcheh-mcp -
Install dependencies
npm install
-
Get your Moorcheh API key
- Visit Moorcheh Dashboard
- Sign in to your account
- Go to your account settings
- Generate or copy your API key
-
Set up your environment
# Copy the example environment file cp env.example .env -
Edit the .env file
# Open .env in your preferred editor # Replace 'your_moorcheh_api_key_here' with your actual API key MOORCHEH_API_KEY=your_actual_api_key_here
npm startThat's it! Your Moorcheh MCP server is now running and ready to use.
To use the Moorcheh MCP server with Claude Desktop:
Moorcheh-mcp.mp4
- Download Claude Desktop from https://claude.ai/download
- Install and launch Claude Desktop
Option A: Using NPX (Recommended)
- In Claude Desktop, go to Settings → Developer
- Click Edit Config
- Configure the server with these settings:
{ "mcpServers": { "moorcheh": { "command": "npx", "args": ["-y", "@moorchehai/mcp"], "env": { "MOORCHEH_API_KEY": "your_actual_api_key_here" } } } }
Option B: Local Installation
-
In Claude Desktop, go to Settings → Developer
-
Click Edit Config
-
Configure the server with these settings:
{ "mcpServers":{ "moorcheh": { "command": "node", "args": [ "path\\to\\moorcheh-mcp\\src\\server\\index.js" ], "env": { "NODE_ENV": "development" } } } } -
Important:
- For Option A: Replace
your_actual_api_key_herewith your actual Moorcheh API key - For Option B: Replace
path\\to\\moorcheh-mcp\\src\\server\\index.jswith the actual path to yourindex.jsfile and create .env in moorcheh-mcp with your API key
- For Option A: Replace
-
Save the configuration file and restart Claude Desktop completely
- Start a new conversation in Claude Desktop
- Ask Claude to list the available tools: "Can you list down my namespaces?"
- You should see tools like
list-namespaces,search,answer, etc.
To use the Moorcheh MCP server with Cursor IDE:
- Download Cursor from https://cursor.com
- Install and launch Cursor
Option A: Using NPX (Recommended)
- In Cursor, go to Settings → Tools & integration
- Click Add MCP Server
- Configure the server with these settings:
{
"mcpServers": {
"moorcheh": {
"command": "npx",
"args": ["-y", "@moorchehai/mcp"],
"env": {
"MOORCHEH_API_KEY": "your_actual_api_key_here"
}
}
}
}Option B: Local Installation
- In Cursor, go to Settings → Tools & integration
- Click Add MCP Server
- Configure the server with these settings:
{
"mcpServers":{
"moorcheh": {
"command": "node",
"args": [
"path\\to\\moorcheh-mcp\\src\\server\\index.js"
],
"env": {
"NODE_ENV": "development"
}
}
}
}- For Option A: Replace
your_actual_api_key_herewith your actual Moorcheh API key in the configuration - For Option B: Create .env in moorcheh-mcp directory and add your API key with
MOORCHEH_API_KEY=your_key_here
- Open a new chat in Cursor (Cmd/Ctrl + L)
- Ask the AI to list available Moorcheh tools: "What Moorcheh tools can I use?"
- You should see tools like
list-namespaces,search,answer, etc.
The Moorcheh MCP server provides tools for:
- Namespace Management: Create, list, and delete namespaces for organizing your data
- Document Operations: Upload and manage text documents and vector embeddings
- Advanced Search: Perform semantic search across your data
- AI-Powered Answers: Get intelligent responses based on your stored data
list-namespaces: View all your available namespacescreate-namespace: Create a new namespace for storing datadelete-namespace: Remove a namespace and all its contents
upload-text: Upload text documents to a namespaceupload-vectors: Upload vector embeddings to a namespaceget-data: Retrieve text documents by ID from text namespacesdelete-data: Remove specific data items from a namespace
search: Search across namespaces with vector similarityanswer: Get AI-generated answers based on top of your search
| Model ID | Name | Provider | Description |
|---|---|---|---|
anthropic.claude-3-7-sonnet-20250219-v1:0 |
Claude 3.7 Sonnet | Anthropic | Latest Claude model with enhanced capabilities |
anthropic.claude-sonnet-4-20250514-v1:0 |
Claude Sonnet 4 | Anthropic | Latest Claude model with enhanced capabilities |
meta.llama4-maverick-17b-instruct-v1:0 |
Llama 4 Maverick | Meta | Latest Llama model optimized for instruction following |
meta.llama3-3-70b-instruct-v1:0 |
Llama 3 70B | Meta | Large Llama model with strong general capabilities |
deepseek.r1-v1:0 |
DeepSeek-R1 | DeepSeek | Specialized model for research and analysis |
- Node.js: Version 18.0.0 or higher
- Moorcheh Account: Active account with API access
- Git: For cloning the repository
For development with auto-reload:
npm run dev| Script | Description |
|---|---|
npm start |
Start the MCP server |
npm run dev |
Start in development mode with auto-reload |
npm test |
Run tests (when available) |
| Variable | Description | Required | Default |
|---|---|---|---|
MOORCHEH_API_KEY |
Your Moorcheh API key | Yes | None |
-
"Missing required API_KEY environment variable"
- Make sure you've created a
.envfile - Verify your API key is correctly set in the
.envfile - Check that the API key is valid in your Moorcheh dashboard
- Make sure you've created a
-
"Forbidden: Check your API key"
- Your API key may be invalid or expired
- Generate a new API key from the Moorcheh dashboard
- Update your
.envfile with the new key
-
"Network Error"
- Check your internet connection
- Verify the API endpoints are accessible
- Try again in a few minutes
- GitHub Issues: https://github.com/moorcheh-ai/moorcheh-mcp/issues
- Moorcheh Documentation: https://console.moorcheh.ai/docs/mcp
- Moorcheh Dashboard: https://console.moorcheh.ai
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
We welcome contributions! Please feel free to submit a Pull Request.
- Package Name: Updated to
@moorchehai/mcpfor official Moorcheh organization - NPX Support: Added CLI wrapper for seamless
npx -y @moorchehai/mcpexecution - Package Structure: Configured for npm registry publishing
- CLI Features: Added help, version commands and API key validation
- User Experience: Improved error messages and installation guidance
- NPX Support: Added CLI wrapper for seamless
npx -y @moorcheh/mcpexecution - Package Structure: Configured for npm registry publishing as
@moorcheh/mcp - CLI Features: Added help, version commands and API key validation
- User Experience: Improved error messages and installation guidance
- New tool:
get-datato fetch documents by ID from text namespaces (POST /namespaces/{name}/documents/get) - Reliability: Static documentation resources to avoid invalid URI errors in MCP clients
- Windows compatibility: Use ';' for command chaining in PowerShell
- Stability: Ensured stdout handling respects MCP JSON-RPC framing
- Enhanced prompt system with dynamic content generation
- Added comprehensive argument schemas with Zod validation
- Improved search optimization, data organization, and AI answer setup prompts
- Updated prompt registration to use new MCP SDK signature
- Better user guidance and interactive prompt responses
- Initial release with MCP server functionality
- Support for text and vector operations
- AI-powered answer generation
- Comprehensive documentation