Skip to main content
Qoder CLI can connect to Model Context Protocol (MCP) servers to use external tools and data sources. After a server is added, its tools become available to the agent in interactive and non-interactive sessions.

Quick Start

Add a stdio MCP server with qodercli mcp add. The command after -- is the server process Qoder CLI should launch.
Stdio servers start automatically with the CLI. If Qoder CLI is already running, use /mcp reload to rediscover MCP servers and tools; new sessions discover them on startup.

Server Types

Use -t to choose the MCP transport type. If you do not specify a type, local command servers should use the default stdio behavior. When the shell command prefix is enabled, Qoder CLI launches stdio servers through the configured executable wrapper. The wrapper receives the original server executable and arguments as one shell-quoted argument and must execute it while preserving stdio and the exit status. The configured value must be a single executable path. This setting does not affect sse, http, or ws servers.

Scopes

Use -s to choose where the MCP server configuration is stored. MCP server configuration is stored in these files:

Manage Servers

List configured servers:
Remove a server:
Common MCP servers include:

Permissions

MCP tools still pass through Qoder CLI permissions. In the default mode, calling an MCP tool usually asks for confirmation. You can approve a specific tool, approve all tools from one MCP server, or configure rules in settings. MCP tool names commonly use this format:
Examples:

Troubleshooting

If an MCP tool is not available:
  • Run qodercli mcp list and confirm the server is configured.
  • If Qoder CLI is already running, run /mcp reload after adding or changing a server.
  • Confirm the command after -- works in your terminal.
  • For npx-based servers, confirm Node.js and network access are available.
  • Check permission prompts if the server is connected but tool calls are blocked.