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

pip install mcp-hub-tui
mcp-hub

Requires Python 3.11+. Published on PyPI as mcp-hub-tui (the mcp-hub name was taken); the command is still mcp-hub.

From source

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.

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.2.0.tar.gz (17.6 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.2.0-py3-none-any.whl (19.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mcp_hub_tui-0.2.0.tar.gz
  • Upload date:
  • Size: 17.6 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.2.0.tar.gz
Algorithm Hash digest
SHA256 567c980f23c89768de4bab4e172ec53b174cb8574b7bbf438cca6052d7c17705
MD5 50f49913e8fcee604d8ac01cd380b7c4
BLAKE2b-256 046bcef5185970b26959bd76c47cdfee2f208fa4611718fe557dab63d4ef6993

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mcp_hub_tui-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 19.1 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 78b9b022836918a3e669dc8555afbb8886a20dd39cf5b64e359f0e6d534d3a60
MD5 f91ef410f9c194c2a8482a461413ed61
BLAKE2b-256 a1d810e9f5778dfd7cd3261a1d93a1daf1a5c947a2dedb4ad3d176ef1616ee83

See more details on using hashes here.

Release history Release notifications | RSS feed

0.3.0

2 files

This release

0.2.0 This release

2 files

0.1.1

2 files

0.1.0

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