Welcome to the comprehensive documentation for MCP Doctor - the diagnostic tool for MCP (Model Context Protocol) servers.
- Token Efficiency Arguments - How MCP Doctor automatically generates test arguments for tools
- Technical Architecture - Deep dive into implementation details and algorithms
- Tool Description Analysis - Static analysis of tool descriptions and parameters
- Token Efficiency Analysis - Dynamic testing of tool response sizes and optimization
- CLI Interface - Command-line usage and options
- Python API - Programmatic usage in Python applications
- Architecture Overview - How MCP Doctor works internally
- Custom Checkers - Creating your own diagnostic modules
- Performance Optimization - Tips for faster analysis
- Security Considerations - Safe handling of sensitive data
- Code Coverage - Test coverage measurement and reporting
- Token Efficiency Troubleshooting - Solutions for token efficiency analysis issues
- Common Issues - Solutions to frequent problems
- Debugging Guide - How to debug analysis issues
- FAQ - Frequently asked questions
# Install MCP Doctor
pip install mcp-doctor
# Analyze tool descriptions
mcp-doctor analyze --target "npx your-mcp-server"
# Analyze token efficiency
mcp-doctor analyze --target "npx your-mcp-server" --check token_efficiency
# Run all available checks
mcp-doctor analyze --target "npx your-mcp-server" --check allEvaluates MCP tools for AI agent compatibility:
- Description clarity and completeness
- Parameter naming conventions
- Usage context and examples
- Technical jargon detection
Measures actual tool performance:
- Response size measurement (following Anthropic's 25k token guideline)
- Pagination and filtering capability detection
- Verbose identifier flagging
- Performance metrics collection
MCP Doctor is built with a modular architecture:
mcp-doctor/
├── src/mcp_analyzer/
│ ├── cli.py # Command-line interface
│ ├── mcp_client.py # MCP server communication
│ ├── mcp_stdio_client.py # STDIO transport
│ ├── mcp_sse_client.py # SSE transport
│ ├── reports.py # Output formatting
│ └── checkers/ # Diagnostic modules
│ ├── descriptions.py # Description analysis
│ └── token_efficiency.py # Token efficiency analysis
└── tests/ # Test suite
MCP Doctor is open source and welcomes contributions:
- Bug Reports - Found an issue? Please report it
- Feature Requests - Have an idea? We'd love to hear it
- Code Contributions - Pull requests are welcome
- Documentation - Help improve these docs
- Anthropic's Tool Writing Guide - Best practices for AI agent tools
- Model Context Protocol - Official MCP specification and servers
- MCP Doctor GitHub - Source code and issue tracker
- 🐛 Bug Reports: GitHub Issues
- 💬 Discussions: GitHub Discussions
- 🌐 Professional Support: Destilabs
Built with ❤️ by Destilabs for the AI agent development community