This guide provides detailed instructions on how to configure mcp-all-in-one in various IDEs, allowing you to use multiple MCP services without configuring each service individually.
For Chinese documentation, see IDE_CONFIGURATION_GUIDE_zh-CN.md.
- Simplified Configuration: Configure only one MCP service in your IDE instead of multiple
- Unified Management: All MCP service configurations are centralized in one file
- Flexible Combination: Freely combine different types of MCP services (stdio, HTTP)
- Environment Isolation: Manage different environment configurations through environment variables
- Hot Updates: Dynamically modify configuration through self-configuration tools without restarting IDE
Regardless of which IDE you use, the basic steps for configuring mcp-all-in-one are the same:
-
Install mcp-all-in-one
npm install -g mcp-all-in-one
-
Create MCP Configuration File Create a JSON file (e.g.,
mcp.json) and configure all the MCP services you need:{ "mcpServers": { "filesystem": { "command": "npx", "args": ["-y", "@modelcontextprotocol/server-filesystem", "."] }, "web-search": { "type": "http", "url": "https://api.example.com/mcp", "headers": { "Authorization": "Bearer ${API_KEY}" } }, "time": { "command": "uvx", "args": ["mcp-server-time", "--local-timezone=Asia/Shanghai"] } } } -
Configure MCP Service in IDE Configure the IDE to use mcp-all-in-one as the sole MCP service, pointing to the configuration file you created.
-
Open Claude Code
-
Click the settings icon in the bottom left, or use shortcut
Ctrl+,(Windows/Linux) orCmd+,(Mac) -
Find the "MCP" or "Model Context Protocol" section in settings
-
Add the following configuration:
{ "mcpServers": { "mcp-all-in-one": { "command": "mcp-all-in-one", "args": ["stdio", "--mcp-config", "/path/to/your/mcp.json"] } } } -
Save settings and restart Claude Code
You can use environment variables to manage configurations for different environments:
{
"mcpServers": {
"mcp-all-in-one": {
"command": "mcp-all-in-one",
"args": ["stdio", "--mcp-config", "${MCP_CONFIG_PATH}"]
}
}
}Then set the environment variable before starting Claude Code:
export MCP_CONFIG_PATH=/path/to/your/mcp.json-
Open Cursor
-
Click the gear icon in the bottom left, or use menu
File > Preferences > Settings -
Type "MCP" or "Model Context Protocol" in the search box
-
Find the MCP server configuration section
-
Add the following configuration:
{ "mcpServers": { "mcp-all-in-one": { "command": "mcp-all-in-one", "args": ["stdio", "--mcp-config", "/path/to/your/mcp.json"] } } } -
Save settings and restart Cursor
You can also save the MCP configuration to a separate file, then specify that file in Cursor:
-
Create an MCP configuration file (e.g.,
cursor-mcp.json):{ "mcpServers": { "mcp-all-in-one": { "command": "mcp-all-in-one", "args": ["stdio", "--mcp-config", "/path/to/your/mcp.json"] } } } -
Specify that file in Cursor settings:
{ "mcp.configFile": "/path/to/cursor-mcp.json" }
Although VS Code doesn't directly support MCP yet, you can use mcp-all-in-one through the following methods:
- Install VS Code extensions that support MCP (if available)
- Configure mcp-all-in-one according to the extension's instructions
For other IDEs that support MCP, configuration steps are usually similar to Claude Code or Cursor:
- Find the MCP configuration section
- Add mcp-all-in-one as an MCP service
- Specify the configuration file path
Use environment variables in configuration files to make them more flexible:
{
"mcpServers": {
"api-service": {
"type": "http",
"url": "https://${API_HOST}/mcp",
"headers": {
"Authorization": "Bearer ${API_KEY}"
}
}
}
}Don't write sensitive information like API keys directly in configuration files:
# Set environment variables
export API_KEY="your-api-key"
export API_HOST="api.example.com"Create different configuration files for different environments:
# Development environment
mcp-all-in-one stdio --mcp-config ./configs/dev.json
# Test environment
mcp-all-in-one stdio --mcp-config ./configs/test.json
# Production environment
mcp-all-in-one stdio --mcp-config ./configs/prod.jsonUse relative paths in configuration files to make them more portable:
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem", "./workspace"]
}
}
}Use mcp-all-in-one's built-in validation tool to check configuration files:
mcp-all-in-one --validate-mcp-config /path/to/your/mcp.jsonEnable debug logging to get more information:
{
"mcpServers": {
"mcp-all-in-one": {
"command": "mcp-all-in-one",
"args": ["stdio", "--mcp-config", "/path/to/your/mcp.json", "--log-level", "debug"]
}
}
}Ensure all paths are absolute paths or correct relative paths:
# Use absolute paths
/path/to/your/mcp.json
# Or use paths relative to user home directory
~/mcp.jsonEnsure mcp-all-in-one has permission to access the configuration file and all related resources:
# Check file permissions
ls -la /path/to/your/mcp.json
# Modify permissions if needed
chmod 644 /path/to/your/mcp.jsonOnce mcp-all-in-one is running in your IDE, you can use the built-in self-configuration tools to manage configurations:
-
View Current Configuration:
Use tool: mcp-all-in-one-show-mcp-config -
Validate Configuration:
Use tool: mcp-all-in-one-validate-mcp-config -
Modify Configuration:
Use tool: mcp-all-in-one-set-mcp-config Parameters: { "config-content": "{\"mcpServers\":{\"filesystem\":{\"command\":\"npx\",\"args\":[\"-y\",\"@modelcontextprotocol/server-filesystem\",\".\"]}}}" } -
View Configuration Format:
Use tool: mcp-all-in-one-show-mcp-config-schema
You can dynamically add new MCP services at runtime:
- Use
mcp-all-in-one-show-mcp-configto get current configuration - Add new service configuration
- Use
mcp-all-in-one-set-mcp-configto apply new configuration - Restart mcp-all-in-one service
Configure primary and backup services to achieve high availability:
{
"mcpServers": {
"primary-search": {
"type": "http",
"url": "https://primary.example.com/mcp"
},
"backup-search": {
"type": "http",
"url": "https://backup.example.com/mcp"
}
}
}Enable different services based on environment variables:
{
"mcpServers": {
"dev-tools": {
"command": "npx",
"args": ["@modelcontextprotocol/server-dev-tools"],
"env": {
"NODE_ENV": "development"
},
"disabled": "${NODE_ENV !== 'development'}"
}
}
}Using mcp-all-in-one can greatly simplify the process of configuring multiple MCP services in IDEs. By merging multiple services into one unified service, you can:
- Reduce IDE configuration complexity
- Centrally manage all MCP services
- Use self-configuration tools to dynamically manage configurations
- Achieve more flexible workflows
We hope this guide helps you better use mcp-all-in-one! If you have any questions or suggestions, feel free to submit an Issue or Pull Request.