Skip to main content

Lean BigQuery-only MCP server for PhysioNet datasets

Project description

physionet-mcp

Lean MCP server for PhysioNet datasets - works with any PhysioNet dataset you have access to.

📺 This is a lean version of m3 with similar BigQuery and PhysioNet setup. Check out detailed videos here: https://rafiattrach.github.io/m3/

Quick Setup

Production (After PyPI release)

{
  "mcpServers": {
    "physionet-mcp": {
      "command": "uvx",
      "args": ["physionet-mcp"],
      "env": {
        "BIGQUERY_PROJECT_ID": "your-project-id"
      }
    }
  }
}

Local Development

{
  "mcpServers": {
    "physionet-mcp": {
      "command": "/path/to/physionet-mcp/venv/bin/python",
      "args": ["-m", "physionet_mcp.mcp_server"],
      "cwd": "/path/to/physionet-mcp",
      "env": {
        "BIGQUERY_PROJECT_ID": "your-project-id"
      }
    }
  }
}

Replace your-project-id with your Google Cloud project ID.

4 Simple Tools

  1. list_accessible_datasets → See what you can access
  2. get_database_schema → Find tables in a dataset
  3. get_table_info → Check structure & sample data
  4. execute_query → Run your analysis

Usage Examples

  • "What PhysioNet datasets can I access?"
  • "Show me MIMIC-IV hospital tables"
  • "What's in the patients table?"
  • "How many patients are in MIMIC-IV?"

Future Enhancements

Potential improvements for enterprise use:

  • Dataset filtering - Restrict access to specific datasets for security
  • Query optimization - Add result caching and query cost tracking
  • Rate limiting - Implement query throttling for shared environments
  • Enhanced metadata - Add column descriptions and data quality metrics

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

physionet_mcp-0.0.1.tar.gz (110.2 kB view details)

Uploaded Source

Built Distribution

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

physionet_mcp-0.0.1-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file physionet_mcp-0.0.1.tar.gz.

File metadata

  • Download URL: physionet_mcp-0.0.1.tar.gz
  • Upload date:
  • Size: 110.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.9

File hashes

Hashes for physionet_mcp-0.0.1.tar.gz
Algorithm Hash digest
SHA256 83cfa7b760ba01608b7ce54656d069ff31e9a16f23a96c1e608cae187292fa23
MD5 97d1b055279114211495658dde97f270
BLAKE2b-256 6117434e0f8cd452b5680384ebed7840dc3b9ff374f231d80a4c16b57901c51c

See more details on using hashes here.

File details

Details for the file physionet_mcp-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for physionet_mcp-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 67627af80cb06e88efee7911fe890ef2067275de5ac86f8f85ff58bc8c6a8a3d
MD5 7e517abb51a65dbbabd5c39be72fe003
BLAKE2b-256 66888acc48a1096cee8d2817b775983798bd97b0cefb75cc3315dc656cf30b6d

See more details on using hashes here.

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