For developers

Health records for agents, over MCP.

Flexpa's patient records MCP server at https://api.flexpa.com/mcp/consent lets AI agents query health records authorized through Flexpa Consent. It uses patient access tokens and provides tools such as get_health_summary, get_patient, get_coverage, and get_claims, plus read-only resources such as flexpa://medications and flexpa://labs.

Updated 2026-11-11

How it works

  1. Flexpa Consent
  2. Patient access token
  3. MCP tools and resources
Application access tokens do not grant access to patient records tools.

Connect

Claude Codebash
claude mcp add flexpa \
  --transport http \
  https://api.flexpa.com/mcp/consent
Tool calljson
{
  "name": "get_health_summary",
  "arguments": { "sections": ["problems", "medications"] }
}

Good to know

  • Authentication uses OAuth 2.1 with PKCE through Flexpa Consent.
  • Application access tokens don't grant access to patient records tools.
  • The public registry of health tools is at /mcp, with no authentication.

Implementation status

Flexpa documents the patient records MCP server as beta. Check the agents guide for current tools and configuration.

Questions

Is there an MCP server for health records?

Yes. Flexpa's MCP server at https://api.flexpa.com/mcp/consent gives agents patient-consented records through tools and resources.

How does authentication work?

Flexpa's patient records MCP server uses OAuth 2.1 with PKCE through Flexpa Consent and accepts the same patient access tokens as the FHIR API. Application access tokens do not grant access to patient records tools.

More

Build an agent. Read the docs.

Tools, resources, and setup for each client.

Open the agents guide