Skip to main content

FastMCP-based tool for writing prompts against data in the NMDC (National Microbiome Data Collaborative) database

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 using uv:

uv sync

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/microbiomedata/nmdc-mcp.git
cd nmdc-mcp

# Install development dependencies
make dev

Development Workflow

The project uses a comprehensive Makefile for development tasks:

# Run all development checks (tests, formatting, linting, type checking)
make all

# Individual commands
make dev           # Install development dependencies
make test-coverage # Run tests with coverage
make format        # Format code with black
make lint          # Lint with ruff
make mypy          # Type checking
make deptry        # Check for unused dependencies
make build         # Build package

Testing

# Run all tests with coverage
make test-coverage

# Run specific test types
make test-unit         # Unit tests only
make test-integration  # Integration tests
make test-real-api     # Tests against real NMDC API
make test-mcp          # Test MCP protocol

MCP Integration

Claude Desktop Setup

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "nmdc-mcp": {
      "command": "uvx",
      "args": ["nmdc-mcp"]
    }
  }
}

Claude Code MCP Setup

claude mcp add -s project nmdc-mcp uvx nmdc-mcp

Goose Setup

goose session --with-extension "uvx nmdc-mcp"

License

MIT

Project details


Download files

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

Source Distribution

nmdc_mcp-0.5.1.tar.gz (80.7 kB view details)

Uploaded Source

Built Distribution

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

nmdc_mcp-0.5.1-py3-none-any.whl (21.4 kB view details)

Uploaded Python 3

File details

Details for the file nmdc_mcp-0.5.1.tar.gz.

File metadata

  • Download URL: nmdc_mcp-0.5.1.tar.gz
  • Upload date:
  • Size: 80.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for nmdc_mcp-0.5.1.tar.gz
Algorithm Hash digest
SHA256 dd1932eab9951fbfdc3e39e10fd0f6225d58ca2db5d4b7fbd3d887a28e67554a
MD5 9cc043b655ca9a7b0f1aac3077112b97
BLAKE2b-256 ce9e07f073d5ca47a1ca993ab98807470d699e97eeb1b9d2803e78922889e7c8

See more details on using hashes here.

Provenance

The following attestation bundles were made for nmdc_mcp-0.5.1.tar.gz:

Publisher: pypi_publish.yaml on microbiomedata/nmdc-mcp

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

File details

Details for the file nmdc_mcp-0.5.1-py3-none-any.whl.

File metadata

  • Download URL: nmdc_mcp-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 21.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for nmdc_mcp-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a30db185b7fc103cccf756b047a7edea02798af237a21ed3931663b84e3689ce
MD5 87c76ed9062c33654154157e40fc72e7
BLAKE2b-256 4739b5b42c71cb01b9f9d410920ce7fe5f06c033990d78bf60604ced1f508bb3

See more details on using hashes here.

Provenance

The following attestation bundles were made for nmdc_mcp-0.5.1-py3-none-any.whl:

Publisher: pypi_publish.yaml on microbiomedata/nmdc-mcp

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

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page