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.2.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.2-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: physionet_mcp-0.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 8a64938e36024aada6c6de191dc05f45e30200ecdb76d69e8bc4e0a8708b1ddc
MD5 3fcad9af9aaad30ae8f39ef1509831cb
BLAKE2b-256 5f9cd0a6ccc8d4a9fb58b41e7bcde03fb355c74e43234b43bcd764b159971825

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for physionet_mcp-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 885d9db5f9f63c5d52cf8c7b95582add49f8d47e81aa3d30796a020857927631
MD5 db3c6ffcfd506329c55f82918f2262b2
BLAKE2b-256 0f8024009c4ff7383375fc6b172612d91c829a070be745181b0a65a285ad3d9b

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