Connect your AI agent to H2H Digital Rx
The H2H Digital Rx MCP Server gives AI applications secure, structured access to e-prescribing: medication and pharmacy search, allergy, benefit, interaction and formulary checks, and sending prescriptions, all through the Model Context Protocol. Every call runs under a real prescriber's session, with sandbox access and examples to get your first agent call working.
MCP Documentation by area
Pick where youβre integrating. Every section includes reference material, request/response schemas, and copy-paste samples.
Getting Started
What the MCP server does, how to get sandbox access, and your first read-only tool call.
Authentication
Authenticate with your DRX credentials, get your MCP token, and handle expiry and errors.
MCP Tool Reference
All tools with parameters, outputs, errors and request/response examples.
Prescription Send API
Submit a prescription, how the prescriber confirms it in Digital Rx, and how results are returned.
Workflows & Agent Patterns
Step-by-step workflows and safe prompt patterns for your agent.
Errors & Troubleshooting
Error codes, retry rules and what to do for each failure.
Sandbox & Testing
Synthetic patients, the test matrix and go-live exit criteria.
Security & Privacy
Shared responsibilities, PHI handling and responsible AI use.
Onboarding & Support
Registration steps, production activation, support channels and incident handling.
Versions & Changes
Current version, change policy and deprecation notices.
Documentation by area
Pick where youβre integrating. Every section includes reference material, request/response schemas, and copy-paste samples.
Getting Started
Set up your account, request sandbox credentials, and send your first test prescription end to end.
Authentication
User identity, care-location context, session handling, and how embedded logins pass through securely.
Web API (SOAP & REST)
Full SOAP and REST service reference for e-prescribing, benefit and formulary checks, EPCS, and status callbacks.
EMR / EHR / MAR Access
Open H2H DigitalRx from a βprescribeβ link inside your existing system with no separate login.
Digital Rx Widgets
Drop-in embeddable widgets and iframe options to add prescribing UI to your product quickly.
AI & Agent APIs
Transcribe-to-Prescribe, PrescribeAgent, and MCP tool access for agentic integrations.
Webhooks & Status Events
Subscribe to prescription lifecycle events β sent, filled, cancelled, and pharmacy responses.
Sandbox & Testing
Test pharmacies, mock Surescripts responses, and rate limits for safe end-to-end validation.
MCP Documentation by area
Pick where youβre integrating. Every section includes reference material, request/response schemas, and copy-paste samples.
Getting Started
What the MCP server does, how to get sandbox access, and your first read-only tool call.
Authentication
Authenticate with your DRX credentials, get your MCP token, and handle expiry and errors.
MCP Tool Reference
All tools with parameters, outputs, errors and request/response examples.
Prescription Send API
Submit a prescription, how the prescriber confirms it in Digital Rx, and how results are returned.
Workflows & Agent Patterns
Step-by-step workflows and safe prompt patterns for your agent.
Errors & Troubleshooting
Error codes, retry rules and what to do for each failure.
Sandbox & Testing
Synthetic patients, the test matrix and go-live exit criteria.
Security & Privacy
Shared responsibilities, PHI handling and responsible AI use.
Onboarding & Support
Registration steps, production activation, support channels and incident handling.
Versions & Changes
Current version, change policy and deprecation notices.
Popular guides
Quick example
// Send a prescription for the prescriber to confirm
POST https://mcp-server.h2hdigitalrx.com/send
Authorization: Bearer <MCP token>
{
"medicationData": [{ "medication_name": "Lisinopril", "dosage": "10 mg",
"dosage_form": "Tablet", "SIG_value": "1 tab PO daily",
"medication_quantity": "30", "refills": 0 }],,
"doctorId": "DOCTOR_ID", "patientUniqueIdentifier": "PATIENT_ID",
"pharmacyId": "PHARMACY_ID", "providerLocationId": "LOCATION_ID"
}
// 200 OK : the prescriber opens the widget URL to send it
{ "prescriptionId": "RX-DRAFT-ID", "status": "pending_confirmation" ,
"widgetUrl": "https://β¦"} Base URL and credentials are issued per environment. See Authentication to get started.
Popular guides
Quick example
// Transcribe-to-Prescribe β submit a visit transcript
POST https://api.h2hdigitalrx.com/v1/ai/transcribe-to-prescribe
Authorization: Bearer <token>
{
"patient_id": "pt_10482",
"transcript": "Start lisinopril 10mg once dailyβ¦"
}
// 200 OK β structured prescription returned
{ "rx": { "drug": "lisinopril 10mg", "sig": "1 tab PO daily" } }Base URL and credentials are issued per environment. See Authentication to get started.
Need a hand from an engineer?
Our integration team reviews architecture, shares sample projects, and helps you go live faster.