Skip to content

MCP Servers

Cyclops Code supports the Model Context Protocol (MCP). Connect any MCP server and its tools become available to the agent alongside the built-in ones.

Use the cyclops mcp subcommand to add a server. The configuration is saved to ~/.cyclops/config.json and persists across sessions.

Terminal window
# Filesystem access
cyclops mcp add filesystem npx -- -y @modelcontextprotocol/server-filesystem .
# GitHub integration
cyclops mcp add github npx -- -y @modelcontextprotocol/server-github
# Brave Search
cyclops mcp add search npx -- -y @modelcontextprotocol/server-brave-search

The format is:

Terminal window
cyclops mcp add <name> <command> -- [args...]
Terminal window
cyclops mcp list
cyclops mcp remove filesystem

You can also manage servers without leaving a session:

> /mcp list
> /mcp add search npx -- -y @modelcontextprotocol/server-brave-search
> /mcp connect search
> /mcp disconnect search
> /mcp remove search

/mcp connect and /mcp disconnect toggle a server on or off for the current session without removing it from config.

When Cyclops Code starts, it connects to all configured MCP servers over stdio. Tools from each server appear in the agent’s tool list with the server name as a prefix (e.g., filesystem__read_file). The agent can call them the same way as built-in tools.

MCP server entries in ~/.cyclops/config.json:

{
"mcp_servers": [
{
"name": "filesystem",
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem", "."],
"env": {}
}
]
}

Use env to pass environment variables to the server process (e.g., API keys for search servers).