MCP tool for querying NMDC API
Project description
NMDC MCP
A fastmcp-based tool for writing prompts against data in the NMDC database.
Installation
You can install the package from source:
pip install -e .
Or using uv:
uv pip install -e .
Usage
You can use the CLI:
nmdc-mcp
Or import in your Python code:
from nmdc_mcp.main import create_mcp
mcp = create_mcp()
mcp.run()
Development
Local Setup
# Clone the repository
git clone https://github.com/username/nmdc-mcp.git
cd nmdc-mcp
# Install development dependencies
uv pip install -e ".[dev]"
Running Tests
pytest
License
MIT
Project details
Release history Release notifications | RSS feed
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 nmdc_mcp-0.2.1.tar.gz.
File metadata
- Download URL: nmdc_mcp-0.2.1.tar.gz
- Upload date:
- Size: 33.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0485f5c804cfc4aabc72a92b4ec8cc3e41771acff33bd7508a5c0d96a2c398a5
|
|
| MD5 |
e1b4dc1ac281b35c059e3da73d38288b
|
|
| BLAKE2b-256 |
736885bce9e1623a4c3fe82f225b2e32c7280b7b3c0f7e9e1f77e3532623376c
|
Provenance
The following attestation bundles were made for nmdc_mcp-0.2.1.tar.gz:
Publisher:
pypi_publish.yaml on microbiomedata/nmdc-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nmdc_mcp-0.2.1.tar.gz -
Subject digest:
0485f5c804cfc4aabc72a92b4ec8cc3e41771acff33bd7508a5c0d96a2c398a5 - Sigstore transparency entry: 237550114
- Sigstore integration time:
-
Permalink:
microbiomedata/nmdc-mcp@8adfb2b8df5e200cd1572aecffb58af157a22c68 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/microbiomedata
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi_publish.yaml@8adfb2b8df5e200cd1572aecffb58af157a22c68 -
Trigger Event:
release
-
Statement type:
File details
Details for the file nmdc_mcp-0.2.1-py3-none-any.whl.
File metadata
- Download URL: nmdc_mcp-0.2.1-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
da55ec1f4241ab05fb5ef19e0633e98b18bdf8d0aeb853f3e75f149c6b3dff51
|
|
| MD5 |
dde2af7e10ad96809461912167b35053
|
|
| BLAKE2b-256 |
c1ca0030ac6b781b90b99b3a17ef6b53fedf32bd9e484250f4458b4fbb95711c
|
Provenance
The following attestation bundles were made for nmdc_mcp-0.2.1-py3-none-any.whl:
Publisher:
pypi_publish.yaml on microbiomedata/nmdc-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nmdc_mcp-0.2.1-py3-none-any.whl -
Subject digest:
da55ec1f4241ab05fb5ef19e0633e98b18bdf8d0aeb853f3e75f149c6b3dff51 - Sigstore transparency entry: 237550120
- Sigstore integration time:
-
Permalink:
microbiomedata/nmdc-mcp@8adfb2b8df5e200cd1572aecffb58af157a22c68 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/microbiomedata
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi_publish.yaml@8adfb2b8df5e200cd1572aecffb58af157a22c68 -
Trigger Event:
release
-
Statement type: