MCP Server Config
Configuration File Location
Priority
Scope
Path (macOS/Linux)
Configuration Format
Stdio Transport (Local Process)
{
"mcpServers": {
"server-name": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/dir"],
"env": {
"TOKEN": "your-token"
},
"cwd": "/optional/working/directory",
"timeout": 30000
}
}
}HTTP/SSE Transport (Remote Server)
Configuration Fields
Field
Type
Description
MCP Management Commands
Adding a Server
Flag
Description
Listing Servers
Enabling and Disabling Servers
Removing a Server
Interactive Mode: /mcp Slash Command
/mcp Slash CommandSubcommand
Aliases
Description
Runtime Flags
Filtering MCP Servers
Examples
Filesystem Server
GitHub Server
Remote HTTP Server with Authentication
Troubleshooting
Using Environment Variables in MCP Server Configuration
Supported Syntax
Syntax
Example
Resolves to
Last updated
Was this helpful?
