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.2.6.tar.gz (55.9 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.2.6-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nmdc_mcp-0.2.6.tar.gz
  • Upload date:
  • Size: 55.9 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.2.6.tar.gz
Algorithm Hash digest
SHA256 948f28361398240ac583db82057cc9961b9c1a965ce18a1e992805f6074647f3
MD5 b019980ef2b26fa9edb17b52ba818d5b
BLAKE2b-256 0e53639a4ae15344f2babee4d1b1765cf2bbef8a49f94739d617bf9b0cdcd40b

See more details on using hashes here.

Provenance

The following attestation bundles were made for nmdc_mcp-0.2.6.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.2.6-py3-none-any.whl.

File metadata

  • Download URL: nmdc_mcp-0.2.6-py3-none-any.whl
  • Upload date:
  • Size: 12.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.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 c8d479c80fed1b7f5ec0455270e03861b87995ef30734322c437a11657ea7608
MD5 17da8c886a98b6579b00f02d19d4a3b6
BLAKE2b-256 38ab551fcc05ec506d12871a33ff2153b961c8b451b4457d25e8e55a439b334f

See more details on using hashes here.

Provenance

The following attestation bundles were made for nmdc_mcp-0.2.6-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