npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@moorchehai/mcp

v1.3.0

Published

Moorcheh MCP Server with completable functionality for AI-powered search and answer operations

Downloads

126

Readme

Quick Start Guide

There are two ways to use the Moorcheh MCP server:

Option 1: NPX (Recommended - No Installation Required)

The easiest way to get started:

# Set your API key and run directly
MOORCHEH_API_KEY=your_api_key_here npx -y @moorchehai/mcp

Option 2: Manual Installation

If you prefer to clone and run locally:

  1. Clone the repository

    git clone https://github.com/moorcheh-ai/moorcheh-mcp.git
    cd moorcheh-mcp
  2. Install dependencies

    npm install

Step 2: Configure Your API Key

  1. Get your Moorcheh API key

    • Visit Moorcheh Dashboard
    • Sign in to your account
    • Go to your account settings
    • Generate or copy your API key
  2. Set up your environment

    # Copy the example environment file
    cp env.example .env
  3. 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

Step 3: Start the Server

npm start

That's it! Your Moorcheh MCP server is now running and ready to use.

Setting Up with Claude Desktop

To use the Moorcheh MCP server with Claude Desktop:

https://github.com/user-attachments/assets/fccbba8e-7393-4b74-8a73-769b55b3f3a3

Step 1: Install Claude Desktop

  1. Download Claude Desktop from https://claude.ai/download
  2. Install and launch Claude Desktop

Step 2: Configure MCP Server

Option A: Using NPX (Recommended)

  1. In Claude Desktop, go to SettingsDeveloper
  2. Click Edit Config
  3. 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

  1. In Claude Desktop, go to SettingsDeveloper

  2. Click Edit Config

  3. Configure the server with these settings:

    {
       "mcpServers":{ 
             "moorcheh": {
                "command": "node",
                "args": [
                "path\\to\\moorcheh-mcp\\src\\server\\index.js"
                ],
                "env": {
                "NODE_ENV": "development"
                }
             }
       }
    }
  4. Important:

    • For Option A: Replace your_actual_api_key_here with your actual Moorcheh API key
    • For Option B: Replace path\\to\\moorcheh-mcp\\src\\server\\index.js with the actual path to your index.js file and create .env in moorcheh-mcp with your API key
  5. Save the configuration file and restart Claude Desktop completely

Step 3: Test the Connection

  1. Start a new conversation in Claude Desktop
  2. Ask Claude to list the available tools: "Can you list down my namespaces?"
  3. You should see tools like list-namespaces, search, answer, etc.

Setting Up with Cursor

To use the Moorcheh MCP server with Cursor IDE:

Step 1: Install Cursor

  1. Download Cursor from https://cursor.com
  2. Install and launch Cursor

Step 2: Configure MCP Server

Option A: Using NPX (Recommended)

  1. In Cursor, go to SettingsTools & integration
  2. Click Add MCP Server
  3. 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

  1. In Cursor, go to SettingsTools & integration
  2. Click Add MCP Server
  3. Configure the server with these settings:
{
   "mcpServers":{ 
         "moorcheh": {
            "command": "node",
            "args": [
            "path\\to\\moorcheh-mcp\\src\\server\\index.js"
            ],
            "env": {
            "NODE_ENV": "development"
            }
         }
   }
}

Step 3: Set Your API Key

  • For Option A: Replace your_actual_api_key_here with 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

Step 4: Test the Connection

  1. Open a new chat in Cursor (Cmd/Ctrl + L)
  2. Ask the AI to list available Moorcheh tools: "What Moorcheh tools can I use?"
  3. You should see tools like list-namespaces, search, answer, etc.

What This Server Does

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

Available Tools

Namespace Tools

  • list-namespaces: View all your available namespaces
  • create-namespace: Create a new namespace for storing data
  • delete-namespace: Remove a namespace and all its contents

Data Tools

  • upload-text: Upload text documents to a namespace
  • upload-vectors: Upload vector embeddings to a namespace
  • get-data: Retrieve text documents by ID from text namespaces
  • delete-data: Remove specific data items from a namespace

Search & AI Tools

  • search: Search across namespaces with vector similarity
  • answer: Get AI-generated answers based on top of your search

Supported Bedrock Models

| 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 |

Prerequisites

  • Node.js: Version 18.0.0 or higher
  • Moorcheh Account: Active account with API access
  • Git: For cloning the repository

Development

Development Mode

For development with auto-reload:

npm run dev

Available Scripts

| Script | Description | |--------|-------------| | npm start | Start the MCP server | | npm run dev | Start in development mode with auto-reload | | npm test | Run tests (when available) |

Environment Variables

| Variable | Description | Required | Default | |----------|-------------|----------|---------| | MOORCHEH_API_KEY | Your Moorcheh API key | Yes | None |

Troubleshooting

Common Issues

  1. "Missing required API_KEY environment variable"

    • Make sure you've created a .env file
    • Verify your API key is correctly set in the .env file
    • Check that the API key is valid in your Moorcheh dashboard
  2. "Forbidden: Check your API key"

    • Your API key may be invalid or expired
    • Generate a new API key from the Moorcheh dashboard
    • Update your .env file with the new key
  3. "Network Error"

    • Check your internet connection
    • Verify the API endpoints are accessible
    • Try again in a few minutes

Getting Help

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

Contributing

We welcome contributions! Please feel free to submit a Pull Request.

Changelog

v1.2.2

  • Package Name: Updated to @moorchehai/mcp for official Moorcheh organization
  • NPX Support: Added CLI wrapper for seamless npx -y @moorchehai/mcp execution
  • 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

v1.2.1

  • NPX Support: Added CLI wrapper for seamless npx -y @moorcheh/mcp execution
  • 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

v1.2.0

  • New tool: get-data to 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

v1.1.0

  • 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

v1.0.0

  • Initial release with MCP server functionality
  • Support for text and vector operations
  • AI-powered answer generation
  • Comprehensive documentation