SDK MCP Server

SDK MCP Server

A configurable MCP server providing searchable access to AI/ML SDK source code and documentation, supporting frameworks like OpenAI Agents and Google ADK. It enables AI assistants to browse files, extract class definitions, and compare implementations across different SDKs.

Category
访问服务器

README

SDK MCP Server

A configurable Model Context Protocol (MCP) server that provides searchable access to multiple AI/ML SDK documentation and source code. Currently supports OpenAI Agents SDK and Google ADK, with easy extensibility for additional SDKs.

Purpose

When working with AI/ML SDKs, you often need to:

  • Understand how classes and methods work internally across different SDKs
  • Compare implementations between different frameworks
  • Find the right method signatures and parameters
  • See real implementation examples
  • Debug issues by examining SDK source code

This MCP server gives AI assistants like Claude instant access to multiple SDK sources, making it a powerful development companion for multi-SDK projects.

Quick Start

  1. Install dependencies:
pip install -r requirements.txt
  1. Download SDK sources:
python src/download_sdk.py

This will download all configured SDKs from sdks.yaml.

  1. Configure in Claude Desktop:

Add to your Claude Desktop configuration:

{
  "mcpServers": {
    "sdk-mcp-server": {
      "command": "python",
      "args": ["/absolute/path/to/sdk-mcp-server/src/server.py"]
    }
  }
}

Available Tools

Each configured SDK gets its own set of tools with the SDK prefix. Currently configured:

OpenAI Agents SDK Tools (prefix: openai_agents_)

  • openai_agents_list_files() - List all available OpenAI SDK source files
  • openai_agents_get_source(filename) - Get source code of specific file
  • openai_agents_search_code(query) - Search for terms, methods, or patterns
  • openai_agents_get_class(class_name) - Extract complete class definition
  • openai_agents_find_examples(topic) - Find usage examples and patterns

Google ADK Tools (prefix: google_adk_)

  • google_adk_list_files() - List all available Google ADK source files
  • google_adk_get_source(filename) - Get source code of specific file
  • google_adk_search_code(query) - Search for terms, methods, or patterns
  • google_adk_get_class(class_name) - Extract complete class definition
  • google_adk_find_examples(topic) - Find usage examples and patterns

Cross-SDK Tools (coming soon)

  • list_available_sdks() - Show all configured SDKs
  • search_all_sdks(query) - Search across all SDKs simultaneously
  • compare_implementations(concept, sdk_ids) - Compare similar concepts across SDKs

Usage Examples

Comparing SDKs:

You: "How do OpenAI and Google handle agent creation differently?"
Claude: [Uses openai_agents_get_class("Agent") and google_adk_get_class("Agent")]
*Compares the different approaches and APIs*

Learning a new SDK:

You: "Show me how to use tools in Google ADK"
Claude: [Uses google_adk_search_code("tool") and google_adk_find_examples("tool")]
*Explains Google's approach with real examples*

Debugging across SDKs:

You: "Why does handoff work in OpenAI but not in my Google ADK code?"
Claude: [Searches both SDKs for handoff implementations]
*Identifies the differences and helps fix the issue*

Configuration

Adding a New SDK

Edit sdks.yaml to add new SDKs:

sdks:
  your_sdk:
    name: "Your SDK Name"
    description: "Description of the SDK"
    source:
      type: "github"
      repo: "org/repo-name"
      branch: "main"
      path: "src"
    file_patterns:
      - "**/*.py"
    tools:
      prefix: "your_sdk"
      descriptions:
        list_files: "List all Your SDK source files"
        # ... other tool descriptions

Supported Source Types

  • GitHub repositories - Public repos with Python/TypeScript code
  • Direct URLs (coming soon) - ZIP/TAR archives
  • Local paths (coming soon) - Local SDK installations

File Structure

sdk-mcp-server/
├── src/
│   ├── server.py           # Main MCP server implementation
│   └── download_sdk.py     # SDK downloader and indexer
├── data/                   # Downloaded SDK files (git-ignored)
│   ├── openai_agents/      # OpenAI SDK files
│   └── google_adk/         # Google ADK files
├── sdks.yaml              # SDK configuration
├── requirements.txt       # Python dependencies
└── run_server.sh         # Server startup script

Updating

To get the latest SDK sources:

python src/download_sdk.py

This fetches the latest code from all configured SDKs in sdks.yaml.

Tips for Best Results

  1. Specify the SDK - Mention which SDK you're working with
  2. Use SDK prefixes - Each tool is prefixed with the SDK name
  3. Compare implementations - Ask about differences between SDKs
  4. Request examples - Each SDK has example-finding capabilities

Why This Helps

  • Multi-SDK support - Work with multiple frameworks seamlessly
  • Instant answers - No need to browse multiple repos or docs
  • Direct comparisons - See how different SDKs solve similar problems
  • Accurate information - Always from the latest source code
  • Context-aware - AI understands full implementations across SDKs

Contributing

To add support for a new SDK:

  1. Add configuration to sdks.yaml
  2. Test with python src/download_sdk.py
  3. Submit a pull request

License

MIT License - see LICENSE file for details.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选