Utilizes environment variables for configuration, particularly for storing the Anthropic API key
Uses Node.js as the runtime environment for the MCP server, requiring version 18 or higher
Implements the server using TypeScript for type safety and modularity in the codebase
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:
Create a
.env
file with your Anthropic API key:
Setup
Before running the server, you need to:
Build the project and run the setup script:
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.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 description
Usage
Standalone Server
Start the server:
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:
Replace
/ABSOLUTE/PATH/TO/expert-server
with the actual absolute path to your server installation.Restart Claude Desktop.
Directory Structure
Development
Build the project:
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:
Check that all required files exist in the
prompts/
directoryVerify your
ANTHROPIC_API_KEY
is correctly setUse 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
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
A Model Context Protocol server utilizing Claude AI for generating intelligent queries and offering documentation assistance based on API documentation analysis.
- Prerequisites
- Installation
- Setup
- Usage
- Directory Structure
- Development
- Troubleshooting
- Environment Variables
- License
Related Resources
Related MCP Servers
- -securityFlicense-qualityA comprehensive suite of Model Context Protocol servers designed to extend AI agent Claude's capabilities with integrations for knowledge management, reasoning, advanced search, news access, and workspace tools.Last updated -5
- AsecurityAlicenseAqualityA Model Context Protocol server that enables AI assistants like Claude to interact with Outline document services, supporting document searching, reading, creation, editing, and comment management.Last updated -2538MIT License
- AsecurityAlicenseAqualityA Model Context Protocol server implementation that enables AI assistants like Claude to perform Google searches and retrieve web data directly through natural language requests.Last updated -129148MIT License
- AsecurityAlicenseAqualityA Model Context Protocol server that enables AI assistants like Claude to interact with microCMS content management system through six core tools for performing CRUD operations on microCMS list-type APIs.Last updated -1014413MIT License