Configuration
Config file location
~/.config/mcp/servers.jsonMCP_CONFIG_PATH=./my-servers.json mcp --listFile format
{
"mcpServers": {
"server-name": { ... },
"another-server": { ... }
}
}Server types
Stdio servers
Field
Type
Required
Description
HTTP servers
Field
Type
Required
Description
Environment variable substitution
Server names
Adding servers
From the registry
Manually (HTTP)
Manually (edit file)
Removing servers
Multiple configs
Container / Kubernetes deployments
File
Inline env var
Read/write
Complete example
Last updated
Was this helpful?