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.
Add a stdio MCP server with
Stdio servers start automatically with the CLI. If Qoder CLI is already running, use
Use
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
Use
MCP server configuration is stored in these files:
List configured servers:
Remove a server:
Common MCP servers include:
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:
If an MCP tool is not available:
Quick Start
Add a stdio MCP server with qodercli mcp add. The command after -- is the server process Qoder CLI should launch.
/mcp reload to rediscover MCP servers and tools; new sessions discover them on startup.
Server Types
Use -t to choose the MCP transport type.
| Type | Use when |
|---|---|
stdio | The MCP server runs as a local command. |
sse | The MCP server is exposed through a Server-Sent Events endpoint. |
http | The MCP server is exposed through an HTTP endpoint. |
ws | The MCP server is exposed through a WebSocket endpoint. |
sse, http, or ws servers.
Scopes
Use -s to choose where the MCP server configuration is stored.
| Scope | Use when |
|---|---|
user | You want the server available to your local account across projects. |
local | You want the server available only for the current project on your machine. This is the default scope. |
project | You want the server configuration shared with the project. |
Manage Servers
List configured servers:
Recommended Servers
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:
Troubleshooting
If an MCP tool is not available:
- Run
qodercli mcp listand confirm the server is configured. - If Qoder CLI is already running, run
/mcp reloadafter 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.