Skip to main content

MolMCP

Multi-plane MCP for the MolCrafts ecosystem.

Protocol: MCP 2026-07-28 via FastMCP 4.0.0b5 (+ 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.

molmcp serve (no plane) starts the molcrafts core and FastMCP-mounts enabled providers into that one process (molvis_open, molq_list_jobs, …). molmcp init <host> writes that one MCP entry and the usage skill. --disable molcrafts errors; --disable molq omits that mount.

Command Role
molmcp serve Composed core + provider mounts
molmcp serve molvis Debug: vis-only process, bare open
molmcp init grok User-level skill + MCP JSON

Science APIs are never MCP tools. Discover them on molcrafts (packages → open), then call them from agent Python or 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 init grok                         # skill + composed serve
molmcp init grok --disable molq --disable molexp
molmcp init grok --disable molq --enable molq   # re-enable after a disable
molmcp init claude

Host is required (grok, claude, cursor, codex). JSON is one molcrafts entry running molmcp serve, with --disable flags for omitted mounts. Tool ids look like molcrafts__molvis_open.

In Grok, ~/.grok/config.toml outranks the JSON sources. If an old molmcp entry lives there it still wins — grok inspect shows 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 init grok           # skill + MCP config
uv run molmcp config list         # resolved settings
uv run molmcp route "draw dopamine"
uv run molmcp serve               # composed core + mounts
uv run molmcp serve molvis        # debug one plane
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

  1. FastMCP composition — molmcp serve is molcrafts + namespaced mounts.
  2. Bare register, namespaced mount — a provider registers open; the stack exposes molvis_open. Debug molmcp serve molvis still shows molvis__open.
  3. No science tool mirror — no show_smiles / draw_dopamine; discovery + Python.
  4. Providers register via molmcp.providers entry points.
  5. No environment switches — configuration is settings and CLI flags, so molmcp config list is the whole truth.

Documentation

Full manual: docs.molcrafts.org/molmcp (sources in docs/):

Local sources: docs/concepts/architecture.md, docs/guides/molvis-workbench.md.

Metadata

Release files for molcrafts-molmcp 0.6.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for molcrafts-molmcp 0.6.1
File Size Uploaded Provenance
molcrafts_molmcp-0.6.1.tar.gz 197.2 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for molcrafts-molmcp 0.6.1
File Interpreter ABI Platform
molcrafts_molmcp-0.6.1-py3-none-any.whl Python 3 none any Details

Total release size: 411.9 kB

Release files / molcrafts_molmcp-0.6.1.tar.gz

Download URL molcrafts_molmcp-0.6.1.tar.gz
Size 197.2 kB
Tags Source
SHA-256 checksum
How to use checksums
1e58ca66e992864907eea0bb4cd85e6255ccec7a5a526f258730ec1eff6ca32b
BLAKE2b-256 checksum
How to use checksums
c2227696f87d846b78cb11f9066b11fa8138c62c981d6c55550c633ec8ed4873
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 Aug 28, 2026.

Transparency log

Release files / molcrafts_molmcp-0.6.1-py3-none-any.whl

Download URL molcrafts_molmcp-0.6.1-py3-none-any.whl
Size 214.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2e6b49a78d0d5e0b66140c87b9310f458660c53013293faa665aeb03c871e98e
BLAKE2b-256 checksum
How to use checksums
0db3fe07fb2e8be7bab71add15fec96ca7f860d449c78a1ca6565b70ebd60957
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 Aug 28, 2026.

Transparency log

Security for molcrafts-molmcp 0.6.1

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.

Select from 2 files

Attestation for molcrafts_molmcp-0.6.1.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 Aug 28, 2026.

Transparency log

A 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.

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