MolMCP
Multi-plane MCP for the MolCrafts ecosystem.
Protocol: MCP 2026-07-28 via FastMCP 4.0.0b1 (+ MCP Python SDK v2). Handshake-era clients still work — FastMCP 4 negotiates per connection.
Optional science packages (molvis, molq, molexp, …): if not installed,
that plane is omitted from catalogs and client configs (silent). Explicit
molmcp serve <plane> still errors with an install hint. This is runtime
behavior — not a test skip.
One product domain per MCP connection (separate process / server name).
There is no mega-server under molmcp. Client default: all planes on.
Turn planes off with --disable (and back on with --enable).
| Plane | Command | Role |
|---|---|---|
catalog |
molmcp serve catalog |
Bootstrap: list_planes, route(task) |
molcrafts |
molmcp serve molcrafts |
Knowledge pages (packages → outline → open) |
molvis |
molmcp serve molvis |
Live viewer session (open / exec / poll_events) |
molq |
molmcp serve molq |
Job store + opt-in submit/cancel |
molexp |
molmcp serve molexp |
Workspace layout + scaffold + data-directory adoption |
Science APIs are never MCP tools. Discover them on the molcrafts plane,
then call them from agent Python or inside molvis exec.
Client config (default: everything)
One standard mcpServers JSON, which every host reads — Claude Code and
Cursor natively, Grok alongside its own config.toml.
molmcp client # all planes, to stdout
molmcp client --disable molq --disable molexp
molmcp client --disable molq --enable molq # re-enable after a disable
molmcp client claude -o ~/.claude.json
An optional host (claude, cursor, grok) picks the default output path;
the JSON itself is identical for all of them. A disabled plane is simply
absent from the map. Tool ids look like molvis__open, not
molmcp__molvis_open.
In Grok,
~/.grok/config.tomloutranks the JSON sources. If an old molmcp entry lives there it still wins —grok inspectshows each server's origin.
Configuration
Settings live in ~/.molmcp/settings.json, edited through the CLI. There are
no environment variables.
molmcp config list # resolved settings + layers
molmcp config set sources.molpy pkg:molpy # index a package
molmcp config set indexWorkspace true --project # index this repo too
molmcp config add excludes vendor
molmcp config remove sources.molpy
A project may carry .molmcp/settings.json (checked in) and
.molmcp/settings.local.json (untracked); both layer over the user file.
Writes go to the user file unless --project / --local is passed, because a
plane server inherits its working directory from whichever client launched it.
What gets indexed. Auto-discovery finds installed MolCrafts distributions.
The working directory is not a source unless indexWorkspace says so — it
used to be, which meant an unconfigured install indexed whatever it happened
to be started next to.
| Key | Meaning |
|---|---|
sources |
Extra sources to index, name → spec (pkg:, local:, github:, path) |
indexWorkspace |
Index the working directory as well (default false) |
knowledgeScope |
Narrow which indexed sources the knowledge tools surface |
excludes |
Extra ignore globs for the file walk |
cacheDir, maxCacheBytes, maxCacheAgeDays |
Where the index lives and how big it may get |
pythonEnv |
Environment to auto-discover from (a venv root, python, or site-packages) |
discoverInclude, discoverExclude |
Force a distribution in or out of auto-discovery |
molexp.workspace, molq.database |
Provider-specific paths |
molcrafts.json is no longer picked up from the working directory; pass
--config PATH if you keep one.
CLI
uv run molmcp planes # list planes
uv run molmcp client # client config, all planes on
uv run molmcp config list # resolved settings
uv run molmcp route "draw dopamine"
uv run molmcp serve catalog # one plane per process
uv run molmcp serve molvis
uv run molmcp search "Conformer" # offline index search
uv run molmcp index
uv run molmcp cache # index size; --prune / --gc / --vacuum to reclaim
Install
uv sync --extra dev
uv run pytest -v
Design rules
- Multi-link on-demand — one process = one plane = one MCP server name.
- Bare tool names — the plane id is the server name, so a tool registers
as
openand the client showsmolvis__open. - No science tool mirror — no
show_smiles/draw_dopamine; discovery + Python. - Providers register via
molmcp.providersentry points and are served withmolmcp serve <name>. - No environment switches — configuration is settings and CLI flags, so
molmcp config listis the whole truth.
Documentation
Full manual: docs.molcrafts.org/molmcp
(sources in docs/):
Local sources: docs/concepts/architecture.md, docs/guides/molvis-workbench.md.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file molcrafts_molmcp-0.5.2.tar.gz.
File metadata
- Download URL: molcrafts_molmcp-0.5.2.tar.gz
- Upload date:
- Size: 193.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae422c049c4826a4bfeb2914f7c195fe6697a8c4681e6c994614d596e1ef37e8
|
|
| MD5 |
5a69b80753c27d5f16d42c0994185424
|
|
| BLAKE2b-256 |
68182c9f7ebc7d6ea288a7c7969086142710aaa9ceec49b9ca69766059106b92
|
Provenance
The following attestation bundles were made for molcrafts_molmcp-0.5.2.tar.gz:
Publisher:
release.yml on MolCrafts/molmcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
molcrafts_molmcp-0.5.2.tar.gz -
Subject digest:
ae422c049c4826a4bfeb2914f7c195fe6697a8c4681e6c994614d596e1ef37e8 - Sigstore transparency entry: 2395273582
- Sigstore integration time:
-
Permalink:
MolCrafts/molmcp@640e2f444c03f9bb962205a94a22d72a97a1cbb5 -
Branch / Tag:
refs/tags/v0.5.2 - Owner: https://github.com/MolCrafts
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@640e2f444c03f9bb962205a94a22d72a97a1cbb5 -
Trigger Event:
push
-
Statement type:
File details
Details for the file molcrafts_molmcp-0.5.2-py3-none-any.whl.
File metadata
- Download URL: molcrafts_molmcp-0.5.2-py3-none-any.whl
- Upload date:
- Size: 209.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a019a8592b07448b423b7a1516f1c446ff46081809d76d9522f86a6e8d1153ec
|
|
| MD5 |
0ff5e47fc3a9174c6804e48ef0bc8d2f
|
|
| BLAKE2b-256 |
866232a6b1f6f17ce40f449a717ba182e37a10d3b8ba17bc3ca8286a6bc43b26
|
Provenance
The following attestation bundles were made for molcrafts_molmcp-0.5.2-py3-none-any.whl:
Publisher:
release.yml on MolCrafts/molmcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
molcrafts_molmcp-0.5.2-py3-none-any.whl -
Subject digest:
a019a8592b07448b423b7a1516f1c446ff46081809d76d9522f86a6e8d1153ec - Sigstore transparency entry: 2395274148
- Sigstore integration time:
-
Permalink:
MolCrafts/molmcp@640e2f444c03f9bb962205a94a22d72a97a1cbb5 -
Branch / Tag:
refs/tags/v0.5.2 - Owner: https://github.com/MolCrafts
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@640e2f444c03f9bb962205a94a22d72a97a1cbb5 -
Trigger Event:
push
-
Statement type: