An MCP server for crawling API documentation websites and exposing their content through the Model Context Protocol. This allows AI models to search, browse, and reference API specifications.
- Crawls API documentation websites to extract structured information
- Exposes API docs as resources through MCP
- Provides search tools for finding specific API endpoints
- Includes prompt templates for common API documentation tasks
- Stores crawled data for offline access
# Create and activate a virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install the package
pip install -e .
python -m src.main --url https://example-api-docs.com
This MCP server can be connected to any MCP client, such as Claude for Desktop. Configure your client to use this server with:
{
"api-docs": {
"command": "python",
"args": ["-m", "src.main", "--url", "https://example-api-docs.com"]
}
}
- API endpoint specifications
- Data models and schemas
- API examples and code snippets
search_api
: Search for API endpoints by name, path, or descriptionget_endpoint_details
: Get detailed information about a specific endpointlist_endpoints
: List all available API endpointsfind_examples
: Find examples for a specific API endpoint
explain_endpoint
: Generate a natural language explanation of an API endpointcompare_endpoints
: Compare two API endpointsgenerate_code
: Generate sample code for using an API endpoint
MIT