mcp-expert-server
A MCP server that can create queries and fetch information from APi documentation.
Documentation
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
1. Clone the repository
2. Install dependencies:
npm install3. Create a `.env` file with your Anthropic API key:
ANTHROPIC_API_KEY=your_api_key_hereSetup
Before running the server, you need to:
1. Build the project and run the setup script:
npm run build
npm run setupThis will:
- Create the required directories (`docs/` and `prompts/`)
- Create default prompt files
- Generate an initial service description
2. Add your API documentation files to the `docs/` directory (supports `.txt`, `.md`, and `.json` files)
3. Optionally customize the prompts in the `prompts/` directory:
Usage
Standalone Server
Start the server:
npm startThe 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": "node",
"args": ["/ABSOLUTE/PATH/TO/expert-server/build/index.js"],
"env": {
"ANTHROPIC_API_KEY": "your_api_key_here"
}
}
}
}2. Replace `/ABSOLUTE/PATH/TO/expert-server` with the actual absolute path to your server installation.
3. 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.jsonDevelopment
- 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:
npm run setup2. Check that all required files exist in the `prompts/` directory
3. Verify your `ANTHROPIC_API_KEY` is correctly set
4. Use absolute paths in your Claude Desktop config
5. Check the debug logs (written to stderr)
Environment Variables
- `ANTHROPIC_API_KEY`: Your Anthropic API key (required)
License
MIT
Frequently asked questions
What is mcp-expert-server?
mcp-expert-server is A MCP server that can create queries and fetch information from APi documentation.
How do I install mcp-expert-server?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is mcp-expert-server open source?
Yes — it is hosted on GitHub at https://github.com/crazyrabbitLTC/mcp-expert-server and has 3 stars.
Related MCP tools
Playwright Model Context Protocol Server - Tool to automate Browsers and APIs in Claude Desktop, Cline, Cursor IDE and More 🔌
MCP server for fetch web page content using Playwright headless browser. TypeScript-based implementation. Trusted by 800+ developers.
A Playwright-based Node.js tool that bypasses search engine anti-scraping mechanisms to execute Google searches. Built for the Model Context Protocol to...
Model Context Protocol Servers
🍒 Cherry Studio is a desktop client that supports for multiple LLM providers. Built for the Model Context Protocol to enhance AI capabilities.
Enhanced ChatGPT Clone: Features Agents, MCP, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini...
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP