kevintraver
MCP Serverkevintraverpublic

switch mcp config

Easily manage per-project .mcp_config.json files and use them across tools like Claude Desktop, VSCode, Cursor, and Windsurf

Repository Info

0
Stars
0
Forks
0
Watchers
0
Issues
Shell
Language
MIT License
License

About This Server

Easily manage per-project .mcp_config.json files and use them across tools like Claude Desktop, VSCode, Cursor, and Windsurf

Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.

Documentation

switch-mcp-config

Use a different .mcp_config.json for each of your projects, and easily switch between them in Claude Desktop, VSCode, Cursor, and Windsurf.

How it works

  • Looks for .mcp_config.json in the project root
  • Copies or symlinks the config file for each tool in the paths specified in your environment variables.

Installation

Clone the repository and place the script in your PATH:

git clone https://github.com/kevintraver/switch-mcp-config.git
cd switch-mcp-config
chmod +x switch-mcp
cp switch-mcp /usr/local/bin/

Environment Variable Setup

Set the following environment variables with the configuration paths for each tool you want to use:

export CLAUDE_MCP_CONFIG_PATH="$HOME/Library/Application Support/Claude/claude_desktop_config.json"
export WINDSURF_MCP_CONFIG_PATH="$HOME/.codeium/windsurf/mcp_config.json"
export CURSOR_MCP_CONFIG_PATH="$HOME/.cursor/mcp.json"
export VSCODE_MCP_CONFIG_PATH="$HOME/.vscode/mcp.json"

By default, the script copies the project specific config file to each tool destination path.

⚠️ Copying will overwrite the destination file every time. If you have unsaved changes in those files, they will be lost.
Symlinking avoids this but may not be compatible with some tools.
Some tools, such as Cursor and Windsurf, may not work reliably with symlinked config files.

If you prefer to create symlinks, set the following environment variable:

export MCP_SWITCHER_USE_SYMLINK=true

Usage

From any folder within a project that has a .mcp_config.json file:

switch-mcp

To use a default config instead of project-specific ($HOME/.mcp_config.json):

switch-mcp default

License

MIT

Quick Start

1

Clone the repository

git clone https://github.com/kevintraver/switch-mcp-config
2

Install dependencies

cd switch-mcp-config
npm install
3

Follow the documentation

Check the repository's README.md file for specific installation and usage instructions.

Repository Details

Ownerkevintraver
Reposwitch-mcp-config
LanguageShell
LicenseMIT License
Last fetched8/10/2025

Recommended MCP Servers

💬

Discord MCP

Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.

integrationsdiscordchat
🔗

Knit MCP

Connect AI agents to 200+ SaaS applications and automate workflows.

integrationsautomationsaas
🕷️

Apify MCP Server

Deploy and interact with Apify actors for web scraping and data extraction.

apifycrawlerdata
🌐

BrowserStack MCP

BrowserStack MCP Server for automated testing across multiple browsers.

testingqabrowsers

Zapier MCP

A Zapier server that provides automation capabilities for various apps.

zapierautomation