Skip to main content

mcp-hub

License: MIT Python 3.11+

A TUI package manager for MCP servers. It detects which AI coding agents are installed on your machine (Claude Code, Codex, Antigravity), shows what MCP servers each one already has connected, and lets you add or remove a server across every detected agent from one wizard — instead of hand-editing three different config files in three different formats.

Table of Contents

Features

  • Auto-detect — scans for Claude Code, Codex, and Antigravity config files on startup; no setup needed.
  • One dashboard — see every agent's MCP servers, and whether its config file even parses, in one table.
  • Add wizard — pick a server from the bundled catalog or enter one by hand, choose which detected agents to write it to, confirm.
  • Safe writes — every add or remove backs up the config file (.bak) before touching it, and never crashes on a malformed or empty config.
  • Confirm before delete — removing a server asks first.
  • i18n — full English/Russian UI, toggle at runtime with l.
  • Themeable — built-in Textual command palette (ctrl+p); your choice of theme and language persists between runs.

Installation

git clone git@github.com:d2202/mcp-hub.git
cd mcp-hub
./run.sh

run.sh creates a .venv on first run, installs the package, and launches the TUI. Requires Python 3.11+.

Usage

Launch with ./run.sh, then:

  1. Dashboard — one row per agent: detected or not, how many servers, where its config file lives. Select a row to open it.
  2. Server List — the MCP servers configured for that agent. Invalid entries show why parsing failed instead of crashing.
  3. Add Wizard (a) — pick a server from the bundled catalog or enter one by hand, choose target agents, confirm.

Keybindings

Key Action
enter open the selected row
a add server (from a server list)
r remove server, asks to confirm (from a server list)
l toggle language (English / Russian)
? help screen
ctrl+p command palette (change theme, and more)
escape go back
q quit

Supported Agents

Agent Config file Format
Claude Code ~/.claude.json JSON, mcpServers
Codex CLI ~/.codex/config.toml TOML, [mcp_servers.<name>]
Antigravity ~/.gemini/config/mcp_config.json JSON, mcpServers

Adding another agent is one new adapter file under mcp_hub/adapters/; the rest of the app doesn't need to change.

Configuration

mcp-hub's own settings (language, theme) live in ~/.config/mcp-hub/settings.json and are written automatically — nothing to configure by hand. The bundled MCP server catalog is mcp_hub/catalog.yaml.

Development

python3.11 -m venv .venv
.venv/bin/pip install -e ".[dev]"
.venv/bin/pytest

Contributing

Issues and PRs welcome. Keep changes covered by tests (pytest) and follow the existing adapter/screen structure — see mcp_hub/adapters/ for the pattern a new agent adapter should follow.

License

MIT — see LICENSE.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_hub_tui-0.1.0.tar.gz (16.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_hub_tui-0.1.0-py3-none-any.whl (17.6 kB view details)

Uploaded Python 3

File details

Details for the file mcp_hub_tui-0.1.0.tar.gz.

File metadata

  • Download URL: mcp_hub_tui-0.1.0.tar.gz
  • Upload date:
  • Size: 16.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.0

File hashes

Hashes for mcp_hub_tui-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9b270ef54165b8c72808033f9306b5b910c2e67b67bea60ad60c63dc47f071fa
MD5 7447fbcf4ad93b906880f78c3d1f1821
BLAKE2b-256 81dbbd5c2f76e178dc2ba7a9688b5c3c8dc1bb43524a27a3c8909da421389988

See more details on using hashes here.

File details

Details for the file mcp_hub_tui-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: mcp_hub_tui-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 17.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.0

File hashes

Hashes for mcp_hub_tui-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5f9944b3600064674dea1af3e0865e7d9d5379ec230216b1717bca5ced0a8c2c
MD5 fea581653e05ed80120c88dba1b21ee3
BLAKE2b-256 e7fe2e863f9a52e1e73a5a8d323cf357027f9e1b8c64c357bc98a156d47f2eef

See more details on using hashes here.

Release history Release notifications | RSS feed

0.3.0

2 files

0.2.0

2 files

0.1.1

2 files

This release

0.1.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page