MCP Expert Server
An MCP server for query generation and documentation assistance using Claude AI.
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
- Clone the repository
- Install dependencies:
npm install
- Create a
.envfile with your Anthropic API key:
ANTHROPIC_API_KEY=your_api_key_here
Setup
Before running the server, you need to:
- Build the project and run the setup script:
npm run build
npm run setup
This will:
- Create the required directories (
docs/andprompts/) - Create default prompt files
- Generate an initial service description
-
Add your API documentation files to the
docs/directory (supports.txt,.md, and.jsonfiles) -
Optionally customize the prompts in the
prompts/directory:system-prompt.txt: Main system prompt for Claudetool-metadata.txt: Additional context for tool descriptionsquery-metadata.txt: Additional context for query generationservice-description.txt: Auto-generated service description
Usage
Standalone Server
Start the server:
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
- Add this configuration to your Claude Desktop config file:
{
"mcpServers": {
"expert": {
"command": "node",
"args": ["/ABSOLUTE/PATH/TO/expert-server/build/index.js"],
"env": {
"ANTHROPIC_API_KEY": "your_api_key_here"
}
}
}
}
-
Replace
/ABSOLUTE/PATH/TO/expert-serverwith the actual absolute path to your server installation. -
Restart Claude Desktop.
Directory Structure
.
├── 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
├── src/ # Source code
│ ├── index.ts # Entry point
│ ├── server.ts # MCP server implementation
│ └── services/ # Core services
│ └── expertService.ts # Claude integration
└── package.json
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:
- Ensure you've run the setup script:
npm run setup
- Check that all required files exist in the
prompts/directory - Verify your
ANTHROPIC_API_KEYis correctly set - Use absolute paths in your Claude Desktop config
- Check the debug logs (written to stderr)
Environment Variables
ANTHROPIC_API_KEY: Your Anthropic API key (required)
License
MIT
Related Servers
Scout Monitoring MCP
sponsorPut performance and error data directly in the hands of your AI assistant.
Alpha Vantage MCP Server
sponsorAccess financial market data: realtime & historical stock, ETF, options, forex, crypto, commodities, fundamentals, technical indicators, & more
ZenML
Interact with your MLOps and LLMOps pipelines through your ZenML MCP server
MCP Spec Navigator
Navigate and explore the Model Context Protocol specification with dynamic markdown tree generation and intelligent section navigation.
MCP Pyrefly
A server for real-time Python code validation using Pyrefly, designed to prevent common coding errors from LLMs.
Swiftzilla
The only RAG API built for Apple Development. Give your AI instant access to 100,000+ pages of official docs, recipes, and evolution proposals.
MCP LaTeX Server
Create, edit, and manage LaTeX files. Requires an external LaTeX distribution like MiKTeX, TeX Live, or MacTeX.
NetMind ParsePro
Parses PDF files from a URL into structured formats like JSON and Markdown.
Memorix
Cross-agent memory bridge with knowledge graph, workspace sync, and auto-memory hooks. Supports Windsurf, Cursor, Claude Code, Codex, and VS Code Copilot.
AltTester® AI Extension
MCP server for game test automation
GoMCP
A Go library for building clients and servers using the Model Context Protocol (MCP).
FDEP MCP Server
A static code analysis server for enterprise-scale Haskell codebases, providing over 40 comprehensive analysis tools.