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 🙏

© 2026 – Pkg Stats / Ryan Hefner

mcp-expert-server

v1.0.1

Published

An MCP server for query generation and documentation assistance using Claude

Readme

MCP Expert Server

A Model Context Protocol server that provides intelligent query generation and documentation assistance using Claude AI. The server analyzes your API documentation and provides two main tools:

  • create-query: Generates queries based on natural language requests
  • documentation: Provides relevant documentation information based on questions

Prerequisites

  • Node.js >= 18
  • An Anthropic API key for Claude

Installation

From npm

npm install -g mcp-expert-server

From Source

  1. Clone the repository
  2. Install dependencies:
npm install
  1. Create a .env file with your Anthropic API key:
ANTHROPIC_API_KEY=your_api_key_here

Setup

Before running the server, you need to:

  1. Build the project and run the setup script:
# If installed from npm:
mcp-expert-server setup

# If installed from source:
npm run build
npm run setup

This will:

  • Create the required directories (docs/ and prompts/)
  • Create default prompt files
  • Generate an initial service description
  1. Add your API documentation files to the docs/ directory (supports .txt, .md, and .json files)

  2. Optionally customize the prompts in the prompts/ directory:

    • system-prompt.txt: Main system prompt for Claude
    • tool-metadata.txt: Additional context for tool descriptions
    • query-metadata.txt: Additional context for query generation
    • service-description.txt: Auto-generated service description

Usage

Standalone Server

Start the server:

# If installed from npm:
mcp-expert-server

# If installed from source:
npm start

The server exposes two tools via the Model Context Protocol:

  • create-query: Generate a query based on natural language request

    {
      "name": "create-query",
      "arguments": {
        "request": "Find all users who signed up in the last week"
      }
    }
  • documentation: Get information from the documentation

    {
      "name": "documentation",
      "arguments": {
        "request": "How do I authenticate API requests?"
      }
    }

Claude Desktop Integration

  1. Add this configuration to your Claude Desktop config file:
{
  "mcpServers": {
    "expert": {
      "command": "mcp-expert-server",
      "env": {
        "ANTHROPIC_API_KEY": "your_api_key_here"
      }
    }
  }
}
  1. Restart Claude Desktop.

Directory Structure

When running the server, it expects the following structure in your current directory:

.
├── docs/                  # Your API documentation files
└── prompts/              # System prompts and metadata
    ├── system-prompt.txt    # Main system prompt
    ├── tool-metadata.txt    # Tool description context
    ├── query-metadata.txt   # Query generation context
    └── service-description.txt  # Generated service description

Development

  • Build the project:
npm run build
  • The server uses TypeScript and follows a modular architecture
  • All Claude interactions are handled by the ExpertService class
  • Debug logs are written to stderr with [DEBUG] prefix

Troubleshooting

If you encounter connection issues:

  1. Ensure you've run the setup script:
mcp-expert-server setup
  1. Check that all required files exist in the prompts/ directory
  2. Verify your ANTHROPIC_API_KEY is correctly set
  3. Check the debug logs (written to stderr)

Environment Variables

  • ANTHROPIC_API_KEY: Your Anthropic API key (required)

License

MIT