Skip to main content

MatRouter

MatRouter logo

English | 简体中文

MatRouter is an agent-native routing and aggregation substrate for materials data. It turns an explicit data need into executable routes across heterogeneous sources, then assembles returned records, structures, properties, artifacts, provenance, and execution outcomes into one EvidenceBundle.

The Agent (LLM + MCP + Skill) chooses source and record scope and owns planning, retries, scientific interpretation, and prose. MatRouter owns capability truth, source-qualified execution, normalization, provenance, and bundle integrity. It preserves the context needed for downstream reasoning without turning retrieval into a scientific verdict.

Install

MatRouter requires Python 3.11 or newer.

# Python dependency
uv add --prerelease=allow matrouter

# Standalone MCP command
uv tool install --prerelease=allow matrouter

From a checkout:

git clone https://github.com/MatRouter/matrouter.git
cd matrouter
uv sync
uv run matrouter

Python

from matrouter import create_router

with create_router() as router:
    print(router.get_evidence_capability_document())

EvidenceBundle is the core output and the sole record of what was requested, attempted, returned, or missing. The single MCP surface also exposes explicit methods for exact-input structure matching, frame-safe phase-diagram calculation/plotting, and rendering acquired band-structure or DOS artifacts. Retrieval never renders implicitly. Method results retain their exact inputs, parameters, provenance, and limitations; they are not general scientific verdicts.

Agent plugin

Codex and Claude Code can install the bundled plugin; other MCP hosts can run matrouter as a local stdio server and use the portable Skill when supported. See the user guide for the current installation and configuration procedure.

The sole distributable Skill source is plugins/matrouter/skills/matrouter/.

Scope

MatRouter does not mirror upstream databases, infer missing values, impose a fixed research workflow, embed scientific assessment rules, or decide scientific truth. OPTIMADE remains complementary: OPTIMADE standardizes provider-side common records; MatRouter orchestrates native and OPTIMADE sources on the Agent side and preserves their source-specific context in a common bundle.

Documentation

Contact

License

MatRouter is licensed under Apache-2.0; see LICENSE and NOTICE. Retrieved data remains subject to each upstream provider's terms, licenses, attribution requirements, and access restrictions.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

matrouter-0.10.0.tar.gz (658.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

matrouter-0.10.0-py3-none-any.whl (275.1 kB view details)

Uploaded Python 3

File details

Details for the file matrouter-0.10.0.tar.gz.

File metadata

  • Download URL: matrouter-0.10.0.tar.gz
  • Upload date:
  • Size: 658.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for matrouter-0.10.0.tar.gz
Algorithm Hash digest
SHA256 5db0fe0fd55abd0f08d27e299e4b58029fac501e059119e06ac091eaf8d8cf5b
MD5 8ccf41e120107b5f7d604eaf5a1c43eb
BLAKE2b-256 b28e0cd45a35225e1e157d915637f0caa32f5b2c6e068678c79c28fe082e1ec6

See more details on using hashes here.

Provenance

The following attestation bundles were made for matrouter-0.10.0.tar.gz:

Publisher: publish.yml on MatRouter/matrouter

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file matrouter-0.10.0-py3-none-any.whl.

File metadata

  • Download URL: matrouter-0.10.0-py3-none-any.whl
  • Upload date:
  • Size: 275.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for matrouter-0.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 06fab18cb09347c3c4388d09719ccc0232996660fc5d74812e4805af998c7ac2
MD5 a27f380749021540d0e091827e08f880
BLAKE2b-256 d776e404d0d81168e4deae7c275b6976dbea56a49e14b9b249dbb6d92bf5bc9a

See more details on using hashes here.

Provenance

The following attestation bundles were made for matrouter-0.10.0-py3-none-any.whl:

Publisher: publish.yml on MatRouter/matrouter

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.11.0

2 files

0.10.2

2 files

0.10.1

2 files

This release

0.10.0 This release

2 files

0.9.2

2 files

0.9.1

2 files

0.9.0

2 files

0.8.1

2 files

0.8.0

2 files

0.7.1

2 files

0.7.0

2 files

0.6.2

2 files

0.6.1

2 files

0.6.0

2 files

0.5.0

2 files

0.4.0

2 files

0.3.5

2 files

0.3.4

2 files

0.3.3

2 files

0.3.2

2 files

0.3.1

2 files

0.2.1

2 files

0.2.0

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