Skip to main content

MatRouter

MatRouter logo

English | 简体中文

MatRouter is a local-first MCP server for agentic materials research. It gives AI agents structured access to materials databases through normalized tools, provenance-aware responses, and lightweight analysis utilities.

Status

v0.2.1 is an offline-tested local release focused on provenance-preserving materials retrieval, evidence workflows, and resilient upstream integrations.

Quick Start

MatRouter requires Python 3.11 or newer.

Install the published package:

uv tool install matrouter

Or install from a source checkout:

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

Optional bootstrap check before wiring an agent host:

matrouter --explain-sources

Agent hosts should run MatRouter as a local MCP stdio server:

matrouter

When running from a source checkout instead of the installed tool, prefix the same commands with uv run, for example uv run matrouter --explain-sources.

For Codex and Claude Code, prefer the installable plugin path in the user guide. For OpenCode or other hosts, configure MCP with command: "matrouter" or command: ["matrouter"] and install the portable skill if the host supports skills.

Most starter workflows can use public sources without MatRouter-specific credentials. Materials Project, MaterialsGalaxy detail routes, and MPDS require API keys. Keep real keys in a private env file such as ~/.config/matrouter/env, or in process environment variables; do not commit them to the repository or shared MCP client configuration.

Documentation

  • User setup, data-source configuration, MCP client examples, prompts, FAQ, and troubleshooting: user guide
  • Development guide, architecture notes, configuration contract, testing, and release workflow: development guide
  • Validation report: test report

Agent Skill

The public MatRouter skill source lives in skills/matrouter/. It is for agents that have, or are being configured to have, MatRouter MCP access. It provides materials-research guidance: source selection, provenance handling, screening, comparison, report packages, conservative evidence interpretation, and MCP initialization when availability is blocked.

For Codex auto-discovery, install it by copying skills/matrouter/ to .agents/skills/matrouter/ in a repo or to $HOME/.agents/skills/matrouter/ for personal use.

For human-facing MCP client setup, use the user guide. After setup, a useful prompt is:

Use MatRouter to find the band structure of diamond and generate a plot.

Contact

Authors:

Maintainer:

License

MatRouter source code is licensed under the Apache License, Version 2.0. See LICENSE and NOTICE.

MatRouter does not grant rights to third-party database content. Data retrieved through MatRouter remains subject to the terms, licenses, API policies, attribution requirements, and access restrictions of the respective upstream data providers.

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.2.1.tar.gz (351.7 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.2.1-py3-none-any.whl (273.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for matrouter-0.2.1.tar.gz
Algorithm Hash digest
SHA256 0235ff8b0b682f5404053b5374d665e553cc86ee5d2e2050b7f8a9aab261b19d
MD5 a9fbe23cac1894b1b909553ec9fde052
BLAKE2b-256 cc4018aa2dc6cafd0f8c42fb52691731cbe69b2f302974758263d0f3ed48a596

See more details on using hashes here.

Provenance

The following attestation bundles were made for matrouter-0.2.1.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.2.1-py3-none-any.whl.

File metadata

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

File hashes

Hashes for matrouter-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4f69e1b8f69356d8b0c3213a66e770ee50b185f2689fa051da102f120fe78f6f
MD5 307307e35dd56155d6b60865428ce105
BLAKE2b-256 f5e71cdb1694788291fd1d59cdfaed59014e4d7fdee8d3fde9a2c5e9b9d0ff8a

See more details on using hashes here.

Provenance

The following attestation bundles were made for matrouter-0.2.1-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

0.10.0

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

This release

0.2.1 This release

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