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.0 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 docs/usage.md. 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: docs/usage.md
  • Development guide, architecture notes, configuration contract, testing, and release workflow: docs/development.md
  • Validation report: docs/test-report.md

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.0.tar.gz (308.5 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.0-py3-none-any.whl (247.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for matrouter-0.2.0.tar.gz
Algorithm Hash digest
SHA256 2c836d4942c0f9ccf8eedfab28aa24c5f8d2872fc039863298d29161e5de7aef
MD5 ce8cd78a2c08ebf5f42bf3f34c69c605
BLAKE2b-256 e5f5c4a70b3a5710bd94087697e287573f6e0ed7246c40a0a799decda6331b75

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for matrouter-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 131f9b209a99bc7389dff3b55f617866efc6a4092786c636a142aaa202bf70bf
MD5 7ef60992dcd5c486f923c5df49859979
BLAKE2b-256 698185d27b16a0afdc5e30e1ac6ef13171f4c8b6fb40b8822390e95823cceed6

See more details on using hashes here.

Provenance

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

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

0.2.1

2 files

This release

0.2.0 This release

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