# Mcp Agent Tool Adapter

> Transforms MCP tools into collaborative, reasoning agents using modern agent frameworks.

- **Type:** MCP server
- **Install:** `agentstack add mcp-serkanyasr-mcp-agent-tool-adapter`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [serkanyasr](https://agentstack.voostack.com/s/serkanyasr)
- **Installs:** 0
- **Category:** [AI & ML](https://agentstack.voostack.com/c/ai-and-ml)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [serkanyasr](https://github.com/serkanyasr)
- **Source:** https://github.com/serkanyasr/mcp-agent-tool-adapter

## Install

```sh
agentstack add mcp-serkanyasr-mcp-agent-tool-adapter
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

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](https://github.com/modelcontextprotocol), and provides agents that can dynamically reason with tools using either [Google ADK](https://github.com/google/adk-python) or [LangGraph](https://github.com/langchain-ai/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

```bash
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

```bash
# 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:
```bash
❯ python app_client_adk.py
```

### Run LangGraph ReAct CLI agent:
```bash
❯ python app_client_langgraph.py
```

Ensure your `mcp_config.json` defines tools like:
```json
{
  "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](https://github.com/serkanyasr/mcp-agent-tool-adapter/blob/main/LICENCE) file.

---

## Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [serkanyasr](https://github.com/serkanyasr)
- **Source:** [serkanyasr/mcp-agent-tool-adapter](https://github.com/serkanyasr/mcp-agent-tool-adapter)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** yes
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/mcp-serkanyasr-mcp-agent-tool-adapter
- Seller: https://agentstack.voostack.com/s/serkanyasr
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
