esp-idf-docs
Enables searching and reading ESP-IDF documentation online, with support for multiple versions and chip targets.
README
ESP-IDF Documentation Explorer MCP Server
A Model Context Protocol (MCP) server for exploring ESP-IDF documentation online. This server fetches content directly from the official ESP-IDF documentation website, ensuring you always have access to the latest information. This implementation is inspired by the AWS Documentation MCP Server.
Features
- Online Search: Search ESP-IDF documentation directly from the official website
- Real-time Content: Always access the latest documentation without local setup
- Multi-version Support: Choose ESP-IDF version (latest or specific versions)
- API Reference Search: Find API references for ESP-IDF components
- Smart Caching: Intelligent caching for improved performance
Usage in MCP Clients
Add the following to your MCP client configuration (e.g., Claude Desktop):
{
"mcpServers": {
"esp-idf-docs": {
"command": "uvx",
"args": ["esp-idf-docs-mcp"],
"env": {
"ESP_IDF_VERSION": "latest",
"ESP_IDF_CHIP_TARGET": "esp32s3"
}
}
}
}
Development Installation
# Clone and install for development
git clone https://github.com/raihalea/esp-idf-docs.git
cd esp-idf-docs
# Install dependencies only
uv sync
# Install with development dependencies
uv sync --dev
Available Tools
search_docs
Search ESP-IDF documentation for keywords (case-insensitive).
Parameters:
query(string): Search query
get_doc_structure
Get the directory structure of ESP-IDF documentation.
Parameters: None
read_doc
Read the contents of a specific documentation file.
Parameters:
file_path(string): Relative path to the documentation file
find_api_references
Find API references for a specific ESP-IDF component.
Parameters:
component(string): Component or API name to search for
Environment Variables
ESP_IDF_VERSION
ESP-IDF documentation version to use (defaults to "latest").
Available versions:
latest- Latest stable versionv5.1- ESP-IDF v5.1v5.0- ESP-IDF v5.0v4.4- ESP-IDF v4.4- etc.
Setting the environment variable:
# Linux/macOS
export ESP_IDF_VERSION="v5.1"
# Windows Command Prompt
set ESP_IDF_VERSION=v5.1
# Windows PowerShell
$env:ESP_IDF_VERSION="v5.1"
ESP_IDF_BASE_URL
Base URL for ESP-IDF documentation (defaults to official site).
export ESP_IDF_BASE_URL="https://docs.espressif.com/projects/esp-idf"
Usage examples:
# Run with specific version (PyPI)
ESP_IDF_VERSION="v5.1" uvx esp-idf-docs-mcp
# Run with latest (default)
uvx esp-idf-docs-mcp
Testing
Run the test suite:
# Install development dependencies
uv sync --dev
# Run all tests
uv run pytest
# Run tests with verbose output
uv run pytest -v
# Run specific test file
uv run pytest tests/test_minimal.py -v
# Run tests with coverage (if coverage is installed)
uv run pytest --cov=src/esp_idf_docs_mcp
# Search document
ESP_IDF_CHIP_TARGET=esp32s3 ESP_IDF_VERSION=latest uv run python test_search.py bluetooth
Test Categories
- Basic Tests (
test_minimal.py): Core functionality and imports - Implementation Tests (
test_fixed.py): Actual implementation validation - Comprehensive Tests (
test_comprehensive.py): Error handling, security, performance, and robustness - Integration Tests (
test_explorer_integration.py): End-to-end ESPIDFDocsExplorer testing
Development
Code Quality
This project uses ruff for linting and formatting:
# Install development dependencies
uv sync --dev
# Run linter
uv run ruff check src/ tests/
# Auto-fix linting issues
uv run ruff check src/ tests/ --fix
# Format code
uv run ruff format src/ tests/
# Check formatting
uv run ruff format --check src/ tests/
Development Workflow
Common development commands:
# Setup development environment
uv sync --dev
# Run all quality checks
uv run ruff check src/ tests/ && uv run ruff format src/ tests/ && uv run pytest && uv run mypy src/ --ignore-missing-imports
# Run individual checks
uv run ruff check src/ tests/ # Linting
uv run ruff check src/ tests/ --fix # Auto-fix linting
uv run ruff format src/ tests/ # Format code
uv run pytest # Run tests
uv run mypy src/ --ignore-missing-imports # Type checking
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。