Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
MCPAgent for Grupa.AI Multi-agent Collaboration Network (MACNET) with Model Context Protocol (MCP) capabilities baked in
From the repo.
Unleashing a new era of AI collaboration: AgentMCP is the system that makes any AI agent work with every other agent - handling all the networking, communication, and coordination between them. Together with MACNet (The Internet of AI Agents), we're creating a world where AI agents can seamlessly collaborate across any framework, protocol, or location.
Turn any existing AI agent into a globally connected collaborator with just one line of code.
pip install agent-mcp # Step 1: Install
from agent_mcp import mcp_agent # Step 2: Import
@mcp_agent(mcp_id="MyAgent") # Step 3: Add this one decorator! 🎉
class MyExistingAgent:
# ... your agent's existing code ...
def analyze(self, data):
return "Analysis complete!"
That's it! Your agent is now connected to the Multi-Agent Collaboration Network (MACNet), ready to work with any other agent, regardless of its framework.
➡️ Jump to Quick Demos to see it live! ⬅️
AgentMCP is the world's first universal system for AI agent collaboration. Just as operating systems and networking protocols enabled the Internet, AgentMCP handles all the complex work needed to make AI agents work together:
With a single decorator, developers can connect their agents to MACNet (our Internet of AI Agents), and AgentMCP takes care of everything else - the networking, translation, coordination, and collaboration. No matter what framework or protocol your agent uses, AgentMCP makes it instantly compatible with our global network of AI agents.
🚀 Quick Demos: See AgentMCP in Action!
These examples show the core power of AgentMCP. See how easy it is to connect agents and get them collaborating!
Watch two agents built with different frameworks (Autogen and LangGraph) chat seamlessly.
The Magic: The @mcp_agent decorator instantly connects them.
From demos/basic/simple_chat.py:
# --- Autogen Agent ---
@mcp_agent(mcp_id="AutoGen_Alice")
class AutogenAgent(autogen.ConversableAgent):
# ... agent code ...
# --- LangGraph Agent ---
@mcp_agent(mcp_id="LangGraph_Bob")
class LangGraphAgent:
# ... agent code ...
What it shows:
@mcp_agent instantly connects agents to the network.Run it:
python demos/network/test_deployed_network.py
See how AgentMCP automatically reduces costs by 80-90% through intelligent provider selection.
The Magic:
From demos/cost/test_cost_optimization.py:
# Multi-provider setup with cost optimization
providers = [
{"name": "OpenAI", "model": "gpt-4", "cost_per_token": 0.00003},
{"name": "Gemini", "model": "gemini-pro", "cost_per_token": 0.00001},
{"name": "Claude", "model": "claude-3-sonnet", "cost_per_token": 0.000015},
{"name": "Agent Lightning", "model": "lightning-fast", "cost_per_token": 0.000005}
]
@optimize_costs(target_reduction=0.85)
class MultiProviderAgent:
def process_task(self, task):
# Automatically routes to best provider
return "Task processed at optimal cost!"
What it shows:
Run it:
python demos/cost/test_cost_optimization.py
Experience the revolutionary capabilities of Agent Lightning with Auto-Prompt Optimization (APO) and Reinforcement Learning.
The Magic:
From demos/lightning/test_lightning_features.py:
@lightning_agent(enable_apo=True, enable_rl=True)
class AdvancedLightningAgent:
def analyze_data(self, data):
# APO automatically optimizes the prompt
# RL improves performance over time
return self.optimized_analysis(data)
What it shows:
Run it:
python demos/lightning/test_lightning_features.py
In today's fragmented AI landscape, agents are isolated by their frameworks and platforms. AgentMCP changes this by providing:
AgentMCP is built on a few powerful ideas:
The
@mcp_agentdecorator is the heart of AgentMCP's simplicity and power. Adding it instantly transforms your agent:
Result: No complex setup, no infrastructure headaches – just seamless integration into the global AI agent ecosystem.
Think of AgentMCP as the platform connecting specialized agents, much like Uber connects drivers and riders:
AgentMCP handles the complexities behind the scenes:
For Your Agent:
For Developers:
@mcp_agent decorator and task definitions.AgentMCP is designed for broad compatibility:
Currently Supported:
Coming Soon:
AgentMCP acts as a universal connector, enabling agents from different ecosystems to work together seamlessly.
For quick reference, here's the basic setup again:
pip install agent-mcp
from agent_mcp import mcp_agent
# Your existing agent - no changes needed!
class MyMLAgent:
def predict(self, data):
return self.model.predict(data)
# Add one line to join the MAC network
@mcp_agent(name="MLPredictor")
class NetworkEnabledMLAgent(MyMLAgent):
pass # That's it! All methods become available to other agents
# Your agent can now work with others!
results = await my_agent.collaborate({
"task": "Analyze this dataset",
"steps": [
{"agent": "DataCleaner", "action": "clean"},
{"agent": "MLPredictor", "action": "predict"},
{"agent": "Analyst", "action": "interpret"}
]
})
Your agent automatically joins our hosted network at https://mcp-server-ixlfhxquwq-ew.a.run.app
All handled for you! The @mcp_agent decorator:
# All of these happen automatically!
# 1. Register your agent
response = await network.register(agent)
# 2. Discover other agents
agents = await network.list_agents()
# 3. Send messages
await network.send_message(target_agent, message)
# 4. Receive messages
messages = await network.receive_messages()
# Find agents by capability
analysts = await network.find_agents(capability="analyze")
# Get agent status
status = await network.get_agent_status(agent_id)
# Update agent info
await network.update_agent(agent_id, new_info)
All of this happens automatically when you use the @mcp_agent decorator!
AgentMCP now delivers 80-90% cost reduction through intelligent routing and provider optimization:
# Automatic cost optimization
@optimize_costs(target_reduction=0.85) # 85% savings target
class MyCostOptimizedAgent:
def process_data(self, data):
# Automatically routes to most cost-effective provider
return "Processing complete at lowest cost!"
How it works:
Built-in payment gateway supporting multiple payment methods:
# Configure payment processing
payment_config = {
"provider": "stripe", # or "usdc" for crypto
"billing_method": "per_agent", # Agents use own API keys
"auto_scaling": True
}
Payment Methods:
Enterprise-grade security with DID-based authentication:
graph TD
A[Your Agent] -->|@mcp_agent| B[MCP Network]
B -->|Discover| C[AI Agents]
B -->|Collaborate| D[Tools]
B -->|Share| E[Knowledge]
B -->|Optimize| F[Cost Management]
B -->|Process| G[Payment Gateway]
Your agent automatically connects when your application starts.
Join our Discord community for discussions, support, and collaboration: https://discord.gg/dDTem2P
Contributions are welcome! Please refer to the CONTRIBUTING.md file for guidelines.
This project is licensed under the MIT License - see the LICENSE file for details.
Replace {MCP_ENDPOINT_URL} with this MCP’s endpoint URL (from its repo or docs above). No API key — you connect directly.
Tool
OS
Config file: ~/.cursor/mcp.json
{
"mcpServers": {
"mcp-server": {
"url": "{MCP_ENDPOINT_URL}"
}
}
}Paste into mcpServers in the config file. Restart Cursor after saving.
If this MCP is also published on mcpchannel.ai, you can subscribe from Browse and use the gateway config there instead.