mcp-agent-tool-adapter
The mcp-agent-tool-adapter is an automation tool developed in Python that integrates with MCP agents to create efficient workflows. Users can easily configure agents and automate tasks, enhancing productivity in their operations.
GitHub Stars
8
User Rating
Not Rated
Favorites
0
Views
39
Forks
0
Issues
0
mcp-agent-tool-adapter
From Protocol to Intelligence: Powering Agents with MCP.
๐ 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.
0
Followers
0
Repositories
0
Gists
0
Total Contributions
gofannon is a collection of tools designed to enhance the capabilities of function-calling-enabled language models and agents. It offers cross-framework compatibility, allowing import and export from various frameworks such as smolagents and LangChain. The tools provide additional functionality for a variety of tasks, making it a valuable resource for developers.