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?

Pro tip: Start with simple MCP integrations and gradually add complexity. Test MCP server connectivity and tool availability before deploying to production.