
Expert
STDIOAI-powered query generation and documentation assistant for API documentation
AI-powered query generation and documentation assistant for API documentation
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:
npm install
.env
file with your Anthropic API key:ANTHROPIC_API_KEY=your_api_key_here
Before running the server, you need to:
npm run build npm run setup
This will:
docs/
and prompts/
)Add your API documentation files to the docs/
directory (supports .txt
, .md
, and .json
files)
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 descriptionStart 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?" } }
{ "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-server
with the actual absolute path to your server installation.
Restart Claude Desktop.
.
├── 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
npm run build
If you encounter connection issues:
npm run setup
prompts/
directoryANTHROPIC_API_KEY
is correctly setANTHROPIC_API_KEY
: Your Anthropic API key (required)MIT