MCP as tools
Provide your Agents with MCP Servers as tools
AgentKit supports using Claude’s Model Context Protocol as tools.
Using MCP as tools allows you to use any MCP server as a tool in your AgentKit network, enabling your Agent to access thousands of pre-built tools to interact with. Our integration with Smithery provides a registry of MCP servers for common use cases, with more than 2,000 servers across multiple use cases.
Using MCP as tools
AgentKit supports configuring MCP servers via SSE
or WS
transports:
mcpServers
reference
The mcpServers
parameter allows you to configure Model Context Protocol servers that provide tools for your agent. AgentKit automatically fetches the list of available tools from these servers and makes them available to your agent.
An array of MCP server configurations.
MCP.Server
A short name for the MCP server (e.g., “github”, “neon”). This name is used to namespace tools for each MCP server. Tools from this server will be prefixed with this name (e.g., “neon-createBranch”).
The transport configuration for connecting to the MCP server.
TransportSSE
Specifies that the transport is Server-Sent Events.
The URL of the SSE endpoint.
Optional configuration for the EventSource.
Optional request configuration.
TransportWebsocket
Specifies that the transport is WebSocket.
The WebSocket URL of the MCP server.
Examples
Neon Assistant Agent (using MCP)
This examples shows how to use the Neon MCP Smithery Server to build a Neon Assistant Agent that can help you manage your Neon databases.
AgentsToolsNetworkIntegrations
Code-based Router