MCP (Model Context Protocol) allows agents to access your external tools, APIs, and databases seamlessly. Learn more at modelcontextprotocol.io .
Basic Usage
const response = await agentbase . runAgent ({
message: "Get customer data for user ID 12345" ,
mcpServers: [
{
serverName: "customer-api" ,
serverUrl: "https://api.yourcompany.com/mcp"
}
]
});
Common Use Cases
Database Integration:
mcpServers : [{
serverName: "company-db" ,
serverUrl: "https://db-mcp.yourcompany.com"
}]
API Integration:
mcpServers : [{
serverName: "inventory-api" ,
serverUrl: "https://inventory-mcp.yourcompany.com"
}]
Multiple MCP Servers:
mcpServers : [
{ serverName: "crm-tools" , serverUrl: "https://crm-mcp.yourcompany.com" },
{ serverName: "payment-gateway" , serverUrl: "https://payments-mcp.yourcompany.com" }
]
MCP Server Requirements
Your MCP server needs:
HTTP endpoint accepting MCP-formatted requests
Tool definitions with parameters
Authentication handling
Standard response format
What’s Next?
Tools Overview Learn about built-in agent capabilities
System Prompts Guide agents on when to use MCP tools
API Reference Complete MCP parameter documentation
Pro tip : Start with simple MCP integrations and gradually add complexity. Test MCP server connectivity and tool availability before deploying to production.