MCP ExplorerExplorer

Mcp Agent Tool Adapter

@serkanyasron 10 months ago
5 MIT
FreeCommunity
AI Systems
#agents#langgraph#mcp#mcp-server#google-adk#langchain#modular-protocol
Transforms MCP tools into collaborative, reasoning agents using modern agent frameworks.

Overview

What is Mcp Agent Tool Adapter

The mcp-agent-tool-adapter is a project that transforms MCP tools into collaborative reasoning agents using modern agent frameworks, enabling modular tool invocation via the MCP protocol.

Use cases

Use cases include building intelligent chatbots, automating workflows, and creating interactive applications that require reasoning and tool usage in real-time.

How to use

To use mcp-agent-tool-adapter, clone the repository, install the required dependencies, and run the desired agent application, such as the Google ADK agent or the LangGraph agent, depending on your needs.

Key features

Key features include modular tool invocation, dynamic reasoning capabilities with Google ADK or LangGraph, and support for streaming interfaces via FastAPI or CLI.

Where to use

mcp-agent-tool-adapter can be used in various fields including AI development, collaborative tools, and any domain requiring intelligent agent interactions with tools.

Content

mcp-agent-tool-adapter

From Protocol to Intelligence: Powering Agents with MCP.

license last-commit repo-top-language repo-language-count


📍 Overview

MCP Agent Tool Adapter enables modular tool invocation via the MCP protocol, and provides agents that can dynamically reason with tools using either Google ADK or LangGraph.

This project transforms MCP tools into:

  • 🤖 Google ADK-based agents with streaming FastAPI or CLI interfaces
  • 🧠 LangGraph-based agents that use ReAct + streaming tool planning

🧱 Project Structure

mcp-agent-tool-adapter/
├── mcp_client/                # Core client implementation (modular)
│   ├── client.py              # MCPClient & MCPServer
│   ├── tool_loader.py         # High-level async loader
│   └── types.py               # Shared type definitions
├── app_client_adk.py         # Google ADK agent + CLI chat
├── app_client_langgraph.py   # LangGraph agent + ReAct CLI chat
├── mcp_config.json           # Example MCP tool config
├── requirements.txt          # Dependencies
└── README.md

🚀 Getting Started

☑️ Prerequisites

  • Python 3.10+

⚙️ Installation

# Clone this repository
❯ git clone https://github.com/serkanyasr/mcp-agent-tool-adapter
❯ cd mcp-agent-tool-adapter

# Install dependencies
❯ pip install -r requirements.txt

🤖 Usage

Run Google ADK CLI agent:

❯ python app_client_adk.py

Run LangGraph ReAct CLI agent:

❯ python app_client_langgraph.py

Ensure your mcp_config.json defines tools like:

{
  "mcpServers": {
    "filesystem": {
      "command": "npx",
      "args": [
        "@modular-protocol/filesystem"
      ]
    }
  }
}

🧠 Tool Architecture

MCP tools are connected to agents through MCPClient, which handles:

  • Tool server spawning (via subprocess)
  • Session management
  • Tool adaptation (langgraph or Google ADK)
  • Cleanup

You can dynamically swap agent type by changing tool_type to "google" or "langgraph" in your app.


🧪 Development / Contributing

  • Fork the repo and create feature branches.
  • Submit a PR with a description of your changes.
  • Tag @serkanyasr in issues or PRs.

We welcome contributions in:

  • 🧩 new MCP tool adapters
  • 🧠 multi-agent LangGraph use cases
  • 🛠️ OpenAPI / streaming support

🎗 License

This project is licensed under the MIT License.For more details, refer to the LICENSE file.


Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers