Back to Home
henkisdabro icon

Claude-Code-MCP-Server-Selector

Verified Safe

by henkisdabro

Overview

Optimizes Claude Code context windows by interactively enabling/disabling MCP servers and managing plugins through a TUI or CLI.

Installation

Run Command
npx @henkisdabro/mcp-selector

Environment Variables

  • CLAUDE_SESSION_ID
  • CLAUDE_CODE
  • MCP_SERVER_NAME
  • MCP_QUIET
  • MCP_INSTALL_NONINTERACTIVE
  • GREPTILE_API_KEY (example for managed MCP server config)

Security Notes

The project demonstrates robust security practices for its domain, including atomic writes, automatic backups, and file locking to prevent configuration corruption during file system operations. External command execution (`claude mcp list`, `claude` binary launch) is central to its functionality, with command arguments passed through by the user. Input validation for adding new servers (`!/^[a-zA-Z0-9_-]+$/.test(name)`) mitigates potential command injection risks for server names. Plugin installation fetches from local marketplace directories, not arbitrary network URLs. No hardcoded secrets or 'eval' usage are present. The primary security considerations are the integrity of the Claude Code CLI and the user's system environment.

Similar Servers

Stats

Interest Score30
Security Score9
Cost ClassLow
Stars1
Forks0
Last Update2026-01-09

Tags

TUICLIClaude CodeMCP Server ManagementContext OptimizationPlugin Management