packages/docs/plugin-registry/mcp.md
Connect Eliza agents to Model Context Protocol (MCP) servers for extended tool and resource access.
Package: @elizaos/plugin-mcp
The MCP plugin enables elizaOS agents to connect to external MCP servers, giving them access to tools and resources exposed by those servers. This allows agents to interact with a wide ecosystem of MCP-compatible services and data sources without custom integration code. Connections are configured via a JSON specification that defines which servers to connect to and how.
eliza plugins install mcp
The plugin auto-enables when MCP_SERVERS is set.
| Variable | Type | Required | Description |
|---|---|---|---|
MCP_SERVERS | string | No | JSON configuration for MCP server connections |
The MCP_SERVERS value should be a JSON string defining the MCP servers your agent should connect to, including transport details and any authentication required by each server.