Labsco
crazyrabbitLTC logo

MCP Expert Server

โ˜… 3

from crazyrabbitLTC

An MCP server for query generation and documentation assistance using Claude AI.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedAccount requiredAdvanced setup

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

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

Environment Variables

  • ANTHROPIC_API_KEY: Your Anthropic API key (required)