Skip to content
medgridehr.comRequest a Demo

Genesis (MCP)

Genesis, GridOS’s AI assistant, is also an MCP server, so any MCP-capable AI client can use it.

  • Endpoint: POST https://ehr.medgrid.com/api/mcp, JSON-RPC 2.0, one request and one response (no streaming).
  • Auth: the same bearer key as the REST API. The key decides the tools: a clinic key gets that clinic’s tools, limited to its scopes.
  • Protocol version: 2025-06-18. Supported methods: initialize, tools/list, tools/call, ping.
Scope Tools
read:patients list_patients, get_patient
read:prescriptions list_prescribers, list_prescriptions
write:prescriptions create_prescription, update_prescription_status

The tools follow the same rules as the REST endpoints (a prescription is refused unless the prescriber has a valid NPI, DEA number and licensed state) and every call is audit-logged. Bad arguments come back as a tool result with isError: true; an unknown tool returns JSON-RPC error -32602, an unknown method -32601. A bad key returns 401 with { "error": "Unauthorized" }.

Terminal window
curl -X POST "https://ehr.medgrid.com/api/mcp" -H "Authorization: Bearer YOUR_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

Patient data returned to an AI client leaves GridOS; see PHI and compliance.

Was this page helpful?