Claude Code MCP Selector logo

Claude Code MCP Selector

Community
gsong

A CLI tool that intelligently discovers, validates, and selects MCP (Model Context Protocol) server configurations for Claude Code.

Publishergsong
Repositoryccmcp
LanguageTypeScript
Forks
6
Stars
24
Available tools
0
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    Claude Code MCP Selector exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    24 stars and 6 forks from the linked repository.

Claude Code MCP Selector

CI npm

A CLI tool that intelligently discovers, validates, and selects MCP (Model Context Protocol) server configurations for Claude Code.

CCMCP Demo

What it does

Ever have multiple MCP server configs but only want to use specific ones for different tasks? This tool:

  • 🔍 Discovers all MCP configurations in your config directory
  • ✅ Validates config files and shows clear error details for invalid ones
  • 🎯 Interactive selection via modern terminal interface
  • 💾 Remembers your selections per project for faster launches
  • 🌳 Git worktree aware - selections are shared across worktrees of the same repository
  • 🚀 Launches Claude Code with only your chosen configs
  • 🧹 Cleanup stale cache entries and broken symlinks
  • 👻 Ephemeral mode for one-off selections without saving
  • ⚙️ Configurable via CLI options or environment variables

Installation

bash
# Install globally
npm install -g @gsong/ccmcp

# Or run without installing
npx @gsong/ccmcp

Works with npm, pnpm, or yarn. See DEVELOPMENT.md for building from source.

Usage

Quick Start

  1. Run ccmcp
  2. Select configs with arrow keys and spacebar
  3. Press Enter to launch Claude Code

Commands

bash
# Launch with default config directory (~/.claude/mcp-configs/)
ccmcp

# Use custom directory
ccmcp --config-dir /path/to/configs

# Or use environment variable
CCMCP_CONFIG_DIR=/path/to/configs ccmcp

# Pass options to Claude Code
ccmcp --resume

# Cache management
ccmcp -i                      # Skip loading previous selections (short flag)
ccmcp --ignore-cache          # Skip loading previous selections (long flag)
ccmcp -n                      # Don't save selections (ephemeral mode)
ccmcp --no-save               # Don't save selections (ephemeral mode)
ccmcp -in                     # Combine: fresh start + no saving
ccmcp --clear-cache           # Clear all cached selections

# Cleanup stale cache entries and broken symlinks
ccmcp cleanup                 # Interactive cleanup with prompts
ccmcp cleanup --dry-run       # Preview what would be cleaned
ccmcp cleanup --yes           # Skip prompts, automatically proceed

Cleanup notes:

  • Automatically removes entire cache files when no valid configs remain after cleanup
  • Selecting zero configs automatically clears the selection cache for that project

TUI Navigation

  • ↑/↓: Navigate • Space: Select • Enter: Launch Claude Code
  • q / Ctrl+C: Quit
  • a: Select all
  • c: Clear all
  • p: Toggle config preview panel
  • i: Show/hide invalid configs
  • e: Toggle error details (when viewing invalid configs)

Requirements

  • Claude Code must be installed and available in your PATH
  • Node.js 20+ for running the tool
  • Terminal with TTY support for the interactive TUI (falls back to text prompts otherwise)
  • MCP configs should be JSON files in your configured directory (default: ~/.claude/mcp-configs/)

Troubleshooting

"claude command not found" - Ensure Claude Code is installed: which claude

"No MCP configs found" - Check you have *.json files in ~/.claude/mcp-configs/ or your custom directory

Invalid configs - The TUI shows validation errors with details. Common issues:

  • Malformed JSON
  • Missing mcpServers field
  • Invalid server config (missing command for STDIO servers, or url for HTTP/SSE servers)

Note: The type field is optional for server configs and defaults to "stdio" for backward compatibility.

Contributing

Interested in contributing? See DEVELOPMENT.md for:

  • Development setup and scripts
  • Project architecture and structure
  • Build process and CI/CD information
  • Release management and publishing
  • Code style guidelines and contribution workflow

Installation

TypingMind
{
  "mcpServers": {
    "ccmcp": {
      "command": "npx",
      "args": [
        "@gsong/ccmcp"
      ]
    }
  }
}

Use Claude Code MCP Selector MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Claude Code MCP Selector is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Claude Code MCP Selector as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Claude Code MCP Selector MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "ccmcp": {
      "command": "npx",
      "args": [
        "-y",
        "@gsong/ccmcp"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Claude Code MCP Selector MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Claude Code MCP Selector MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Claude Code MCP Selector to help me with this task?
Claude Code MCP Selector
Sure. I read it.
Here is what I found using Claude Code MCP Selector.

Frequently asked questions

What is the Claude Code MCP Selector MCP server used for?

Claude Code MCP Selector is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Claude Code MCP Selector MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Claude Code MCP Selector with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Claude Code MCP Selector MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Claude Code MCP Selector connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Claude Code MCP Selector MCP to TypingMind?

Claude Code MCP Selector runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Claude Code MCP Selector MCP provide in TypingMind?

Claude Code MCP Selector exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Claude Code MCP Selector MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Claude Code MCP Selector requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇