MCP Integration
Integrate MCP (Model Context Protocol) servers with AxCrew to connect your agents to external APIs and services
Integrate MCP (Model Context Protocol) servers with AxCrew to connect your agents to external APIs and services.
What is MCP?
AxLLM and AxCrew both support the Model Context Protocol (MCP), which allows agents to interact with external systems (APIs, websites, databases, etc.) via specialized MCP servers. MCP servers expose functions that agents can call as tools.
How MCP Works in AxCrew
- You configure one or more MCP servers in your agent config using the
mcpServersfield - When the agent is initialized, AxCrew launches/connects to the MCP server(s)
- The agent can call functions exposed by the MCP server as part of its toolset
Supported Transport Types
AxCrew supports three MCP transport types:
1. STDIO Transport (most common)
For MCP servers that communicate via standard input/output:
2. HTTP SSE Transport
For MCP servers accessible via HTTP with Server-Sent Events:
3. Streamable HTTP Transport
For MCP servers that support streamable HTTP communication:
Complete Agent Configuration Example
Mixed Transport Configuration
You can use multiple transport types within the same agent:
Popular MCP Server Examples
Filesystem Server (STDIO):
Brave Search Server (STDIO):
GitHub Server (STDIO):
PostgreSQL Server (STDIO):
Best Practices
- API Keys: Always use the
envfield to pass API keys, never hardcode them - Multiple Servers: You can specify multiple MCP servers in the
mcpServersobject - Debugging: Use
"options": { "debug": true }for verbose logs - Security: Limit what your MCP server can access, validate all inputs
- Path Security: For filesystem servers, always specify allowed paths
Further Reading
- See the curated tools directory for a curated list of MCP servers
- See the GitHub repository for more examples