mcpadapt  by grll

SDK unlocks 650+ MCP server tools in agentic frameworks

Created 1 year ago
417 stars

Top 70.4% on SourcePulse

GitHubView on GitHub
Project Summary

This library provides seamless integration of Model Context Protocol (MCP) servers, enabling agentic frameworks to access over 650 specialized tools. It targets developers building AI agents who need to leverage external data and functionalities, offering a unified interface to a vast ecosystem of MCP-powered resources.

How It Works

MCPAdapt acts as a bridge, translating MCP server tool definitions (often in JSON Schema format) into the specific tool formats required by various agentic frameworks. It supports both local command execution and remote Server-Sent Events (SSE) connections to MCP servers, abstracting away the underlying communication protocols. This approach allows agents to discover and invoke MCP tools as if they were native functions.

Quick Start & Requirements

  • Installation:
    • With Smolagents: uv add smolagents[mcp]
    • With other frameworks (e.g., Langchain): uv add mcpadapt[langchain] or pip install mcpadapt[langchain]
  • Dependencies: Python 3.x. Specific framework integrations may have additional requirements.
  • Resources: Requires an MCP server to be running or executable.
  • Documentation: https://github.com/grll/mcpadapt

Highlighted Details

  • Supports integration with Smolagents, Langchain, CrewAI, and Google GenAI.
  • Enables seamless use of over 650 existing MCP servers.
  • Provides support for both local command execution and remote SSE MCP servers.
  • Includes an adapter pattern for easy extension to new agentic frameworks.

Maintenance & Community

Core maintainers include @grll, with contributions from @murawakimitsuhiro, @joejoe2, @tisDDM, and @sysradium.

Licensing & Compatibility

The repository does not explicitly state a license in the provided README. Users should verify licensing for commercial use or integration into closed-source projects.

Limitations & Caveats

The README includes a security warning advising caution when connecting to MCP servers, especially over SSE, and emphasizes verifying the source and security of any server before connecting. Support for Pydantic-AI and Swarm is listed as planned but not yet implemented.

Health Check
Last Commit

4 months ago

Responsiveness

1 day

Pull Requests (30d)
1
Issues (30d)
0
Star History
2 stars in the last 30 days

Explore Similar Projects

Starred by Li Jiang Li Jiang(Coauthor of AutoGen; Engineer at Microsoft), Jared Palmer Jared Palmer(SVP at GitHub; Founder of Turborepo; Author of Formik, TSDX), and
1 more.

copilot-sdk by github

1.9%
7k
AI agentic workflow SDK for application integration
Created 1 month ago
Updated 22 hours ago
Starred by Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), Kent Dodds Kent Dodds(Cofounder of Remix), and
10 more.

agentic by transitive-bullshit

0.0%
18k
AI agent stdlib for LLM-based TypeScript tooling
Created 3 years ago
Updated 2 weeks ago
Feedback? Help us improve.