mcp-install
A reusable, app-agnostic installer for registering stdio MCP servers with Claude Desktop, Claude Code, Codex, and Grok Build.
This package has no knowledge of any specific MCP server. Every
app-specific detail — server name, entrypoint command, which env vars to
forward into the registered entry, the PyPI distribution name used for
uvx --from inference, the env var a standalone binary uses to identify
itself — is read from a small JSON manifest (install.config.json) that each
consuming project ships on its own. Point mcp_install.Install at your
manifest and it needs no code changes.
Installing
pip install mcp-install
# or, for local development against a sibling checkout:
pip install -e ../mcp-install
Wiring it into your own MCP server project
-
Add
mcp-installas a dependency of your project. -
Add your own
installconsole-script entry point in yourpyproject.toml:[project.scripts] install = "mcp_install.Install:main"
-
Ship an
install.config.jsonmanifest at your project root:{ "serverName": "my-server", "entrypoint": "my-mcp", "distributionName": "my-mcp", "binaryEnvVar": "MY_MCP_BINARY", "envKeys": ["MY_SERVER_TOKEN"], "defaultEnvValues": {}, "envWarnings": { "MY_SERVER_TOKEN": "MY_SERVER_TOKEN is not set." } }
Key Required Meaning serverNameyes Default key the server is registered under in each client's config (overridable with --server-name).entrypointyes Command run via uvx <entrypoint>(overridable with--entrypoint).distributionNameno PyPI/installed distribution name used to infer a uvx --from <git-url>source from the running install's metadata.binaryEnvVarno Env var name checked for a pre-built standalone binary path; when set, installregisters that binary directly instead of auvxcommand.envKeysno Which env vars get forwarded into the registered MCP entry's envblock, from--env/--env-file/the process environment.defaultEnvValuesno Values applied to envKeysthat end up unset after collection.envWarningsno Printed once per key still unset after defaults are applied — use this for security-relevant env vars you want to nudge users toward setting. -
If you also ship a standalone binary (e.g. via PyApp), bundle
install.config.jsoninto it too, and pass--app-config <path>(resolved relative to your own binary/module, notcwd) before dispatching intomcp_install.Install:main— seeffl-mcp'ssrc/Entrypoint.pyfor a worked example.
CLI
install --print # preview the entry, no writes
install --target claude-desktop,claude-code,codex,grok-build
install --env ALLOWED_BASE_DIR=~/Downloads # repeatable KEY=VALUE
install --env-file .env.install # KEY=VALUE per line
install --overwrite
install --config /path/to/claude_desktop_config.json
install --codex-config /path/to/codex/config.toml
install --grok-config /path/to/grok/config.toml
install --uninstall --target claude-code
install --app-config /path/to/install.config.json # override manifest lookup
install.config.json is auto-discovered from the current working directory;
override its location with --app-config or the INSTALL_APP_CONFIG env var.
--target accepts all (default), claude-desktop, claude-code, codex,
grok-build. Legacy aliases claude-cli, codex-cli, codex-desktop, and
grok are accepted and normalized. claude-code registers via the Claude
Code CLI (claude mcp add-json); claude-desktop writes JSON; codex/
grok-build write TOML. Every write is preceded by a timestamped backup of
the existing config file.
Package layout
mcp-install/
├── src/
│ └── mcp_install/
│ ├── Install.py # CLI entry point (main()), AppConfig, uvx-source inference
│ └── backends/
│ ├── Base.py # ConfigBackend, JsonMcpBackend, TomlMcpBackend, TOML/file helpers
│ ├── Claude.py # ClaudeDesktopBackend, ClaudeCliBackend
│ ├── Codex.py # CodexBackend
│ └── Grok.py # GrokBackend
└── tests/ # unittest-based tests
Testing
python -m unittest discover -s tests -p "*Test.py" -v
Metadata
Release files for mcp-install 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| mcp_install-0.1.0.tar.gz | 14.4 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mcp_install-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 34.7 kB
Release files / mcp_install-0.1.0.tar.gz
| Download URL | mcp_install-0.1.0.tar.gz |
|---|---|
| Size | 14.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4778c832d335c432d5ad777b3309f644fe2ed5adee90dc5617115bcc3f6c57f8
|
|
BLAKE2b-256 checksum How to use checksums |
35f8c6ee65ee49baa5d992a89dd40461d271138f0d01e5b4d2d55f1b76f4cc15
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 19, 2026.
Transparency logRelease files / mcp_install-0.1.0-py3-none-any.whl
| Download URL | mcp_install-0.1.0-py3-none-any.whl |
|---|---|
| Size | 20.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4dc797cf5576b928c16427a84944751700e0bc15c7f7dcf9c511e3dca2948ff9
|
|
BLAKE2b-256 checksum How to use checksums |
cf3854684ac966ff83841fee4fd06b6d839a7e6d16c401c1c9e7877b9c90f4cd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 19, 2026.
Transparency logSecurity for mcp-install 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for mcp_install-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 19, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.