A bridge server that connects Agent Communication Protocol (ACP) agents with Model Context Protocol (MCP) clients, enabling seamless integration between ACP-based AI agents and MCP-compatible tools like Claude Desktop.
Configuration
View docs{
"mcpServers": {
"gongrzhe-acp-mcp-server": {
"command": "acp-mcp-server",
"args": [],
"env": {
"ACP_BASE_URL": "http://localhost:8000"
}
}
}
}You can connect ACP agents with MCP clients through a dedicated bridge that handles multiple transports, automatic agent discovery, smart routing, and interactive sessions. This MCP server enables seamless integration between ACP-based AI agents and MCP-compatible tools, letting you run and coordinate agents from your MCP client with minimal setup.
You run the MCP server locally and connect your MCP client to it. Start with the default STDIO transport for Claude Desktop compatibility, or choose streaming transports like SSE or a REST-style HTTP flow when you need web integration. The server automatically discovers ACP agents you have running and routes requests to the best matching agent. Use interactive sessions for multi-turn conversations and take advantage of multi-modal support to handle different content types.
Prerequisites you need before installing are Python 3.11 or newer and a running ACP server with agents. You will also use FastMCP for the MCP protocol implementation.
# Install from PyPI
pip install acp-mcp-server
# Or run in an isolated environment using uvx
uvx acp-mcp-serverEnvironment variables that affect how the MCP server connects to ACP are as follows. You can set ACP_BASE_URL to point to your ACP server. The default is http://localhost:8000.
# Example environment variable
export ACP_BASE_URL=http://localhost:8000The primary way to run the server is a simple STDIO command, which is suitable for local development and Claude Desktop workflows. If you prefer streaming or REST-like transport, you can pass transport options and ports as shown in the usage examples.
Discover available ACP agents registered with the ACP server.
Retrieve detailed information about a specific ACP agent.
Execute ACP agents in synchronous or asynchronous mode.
Fetch results from asynchronous agent executions.
List all currently active agent runs.
Route a request to the most suitable ACP agent using the smart routing logic.
Test routing rules without performing agent execution.
Add custom routing rules to influence future routing decisions.
Display all available routing strategies.
Open an interactive session with an ACP agent.
Send user input to a waiting interactive agent.
Show pending interactive interactions awaiting user input.
Convert messages between ACP and MCP formats.
Analyze the structure and content of ACP/MCP messages.