mcpadapt logo

Mcpadapt

by grll

12 forks
195 stars
Free

What is mcpadapt

mcpadapt is a versatile tool developed by the company grll that allows users to seamlessly integrate with over 650 Model Context Protocol (MCP) servers. These servers provide a vast array of tools and data to enhance your agentic workflows. MCP is an open-source protocol developed by Anthropic, enabling AI systems to connect securely with various data sources and tools. By using mcpadapt, you can access and utilize these resources effortlessly within supported agentic frameworks, such as Smolagents and Langchain. This integration opens up a world of possibilities for AI-driven applications by providing context, tools, and prompts that are essential for real-time information access.

How to Use mcpadapt

To start using mcpadapt, you must first install it within your chosen agentic framework. Here's a quick guide on how to integrate mcpadapt:

Installation

  • For Smolagents:
    Smolagents version 1.4.1 and later comes with mcpadapt pre-integrated. You can add it to your environment using:

    uv add smolagents[mcp]
    
  • For Other Frameworks:
    If you're using frameworks like Langchain, you can install mcpadapt with specific dependencies suited to your framework:

    # using uv
    uv add mcpadapt[langchain]
    
    # or using pip
    pip install mcpadapt[langchain]
    

Usage

  • With Smolagents:
    mcpadapt works seamlessly with Smolagents, allowing you to access tools through a simple tool collection:

    from mcp import StdioServerParameters
    from smolagents.tools import ToolCollection
    
    serverparams = StdioServerParameters(command="uv", args=["run", "src/echo.py"])
    
    with ToolCollection.from_mcp(serverparams) as tool_collection:
        ... # enjoy your tools!
    
  • With Other Frameworks:
    You can adapt MCP servers into usable tools within your workflow:

    from mcp import StdioServerParameters
    from mcpadapt.core import MCPAdapt
    from mcpadapt.smolagents_adapter import SmolAgentsAdapter
    
    with MCPAdapt(
        StdioServerParameters(command="uv", args=["run", "src/echo.py"]),
        SmolAgentsAdapter(),
    ) as tools:
        ... # access your tools
    

Key Features of mcpadapt

  • Extensive Integration:
    Access over 650 MCP servers, providing a rich selection of tools and data to enhance AI workflows.

  • Framework Compatibility:
    Supports integration with popular frameworks like Smolagents and Langchain, with future plans to support more frameworks like Pydantic-AI and Llamaindex.

  • Ease of Use:
    With straightforward installation and usage processes, mcpadapt makes it easy for users to incorporate a wide range of MCP tools without extensive setup.

  • Adaptability:
    Offers a flexible architecture that allows users to create custom adapters for their preferred frameworks, encouraging community contribution and expansion.

  • Secure and Open-Source:
    Built on the open-source Model Context Protocol, ensuring secure, standardized access to external data and tools.

By leveraging mcpadapt, users can enhance their AI systems' capabilities with minimal effort, accessing a plethora of resources and improving their agentic workflows significantly.

How to Use

To use the mcpadapt, follow these steps:

  1. Visit https://github.com/grll/mcpadapt
  2. Follow the setup instructions to create an account (if required)
  3. Connect the MCP server to your Claude Desktop application
  4. Start using mcpadapt capabilities within your Claude conversations

Additional Information

Created

January 11, 2025

Company

grll

Start building your own MCP Server

Interested in creating your own MCP Server? Check out the official documentation and resources.

Learn More