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.1.1.tar.gz (16.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.1.1-py3-none-any.whl (18.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mcp_hub_tui-0.1.1.tar.gz
  • Upload date:
  • Size: 16.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.1.1.tar.gz
Algorithm Hash digest
SHA256 e02824d61aea8d3cdaa8ee83cf2276423c4daaafb65ccdfca7922bb09cdffd06
MD5 f5a228a37075a041cea38a1679de6b71
BLAKE2b-256 3cd14271a01adaa27ceca73c632838677ed9067b4fa98029e0676c5881f52433

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mcp_hub_tui-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 18.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.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6392b1f508dca2e4c45e13bc488d857f53394f1b871f7b8d9f705b09910c8881
MD5 bbf5ccdb7463c401bc1bdce8605860c8
BLAKE2b-256 b5ff215d5ad5e56f6b1922600ecdd8413ad2f7b8d285af3187668909a567168c

See more details on using hashes here.

Release history Release notifications | RSS feed

0.3.0

2 files

0.2.0

2 files

This release

0.1.1 This release

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