MCPAdapt
by grll
MCPAdapt allows seamless integration of over 650 MCP servers' tools into various agentic frameworks. It provides a way to adapt these servers into usable tools within workflows like Smolagents, Langchain, and CrewAI.
Last updated: N/A
What is MCPAdapt?
MCPAdapt is a tool that bridges the gap between Model Context Protocol (MCP) servers and agentic frameworks. It enables developers to easily access and utilize a vast library of tools available through MCP servers within their preferred agentic workflows.
How to use MCPAdapt?
Install MCPAdapt with the desired framework support (e.g., uv add mcpadapt[langchain]
). Then, use the MCPAdapt
class to specify the MCP server parameters and the adapter for your framework. The resulting object will provide tools that can be used directly in your agentic workflow.
Key features of MCPAdapt
Seamless integration of MCP servers into agentic frameworks
Support for multiple frameworks including Smolagents, Langchain, CrewAI, and Google GenAI
Support for both local and remote MCP servers (via SSE)
Asynchronous support for compatible frameworks
Easy-to-extend architecture for adding new framework adapters
Use cases of MCPAdapt
Accessing external data sources within an AI agent
Integrating specialized tools (e.g., code execution, web search) into an agentic workflow
Creating AI agents with a wide range of capabilities
Building custom tools and making them available to other agents through MCP
Extending the functionality of existing agentic frameworks
FAQ from MCPAdapt
What is an MCP Server?
What is an MCP Server?
An MCP Server is a tool or resource made available through the Model Context Protocol, allowing it to be accessed by MCP Clients.
Which agentic frameworks are supported?
Which agentic frameworks are supported?
Currently, MCPAdapt supports Smolagents, Langchain, CrewAI, and Google GenAI. Support for other frameworks like Pydantic-AI and Llamaindex is planned.
How do I install MCPAdapt?
How do I install MCPAdapt?
You can install MCPAdapt using uv add mcpadapt[framework]
or pip install mcpadapt[framework]
, replacing framework
with the desired framework name.
How do I use MCPAdapt with Smolagents?
How do I use MCPAdapt with Smolagents?
Smolagents 1.4.1 and above comes with MCPAdapt integrated. You can use ToolCollection.from_mcp
to create a tool collection from an MCP server.
Is it safe to connect to any MCP server?
Is it safe to connect to any MCP server?
No, you should only connect to trusted and verified MCP servers, especially when using SSE. Always verify the source and security of any MCP server before connecting.