Connect to ChatGPT
Add FHIRfly to ChatGPT as a custom MCP server. There is no API key to copy and nothing to install: you paste one URL, sign in to FHIRfly, and approve access.
Once connected, ChatGPT can call all 62 FHIRfly tools: NDC, RxNorm, ICD-10, LOINC, SNOMED CT, NPI, HCPCS, MS-DRG, FDA labels, claims edits and more. Every tool is read-only.
What you need
- ChatGPT on the web (chatgpt.com). Custom MCP servers are added from the web app.
- A FHIRfly account. Sign up first if you don't have one.
On Business and Enterprise workspaces, your admin's policies decide whether custom MCP servers are allowed. If you don't see the option below, ask your workspace admin.
Step 1: Add the server
- Go to chatgpt.com/plugins.
- Click Add, then Add custom MCP server.
- Fill in the form:
| Field | Value |
|---|---|
| Name | FHIRfly |
| Server URL | https://api.fhirfly.io/mcp |
| Authentication | OAuth |
- Leave any client ID and client secret fields empty. ChatGPT registers itself with FHIRfly automatically.
- ChatGPT shows a risk warning for custom servers. Select I understand and want to continue.
Step 2: Sign in to FHIRfly
ChatGPT opens a FHIRfly window.
- Enter your email address. FHIRfly emails you a sign-in code.
- Enter the code. If you were already signed in to fhirfly.io in this browser, this step is skipped.
Step 3: Approve access
The consent screen shows which app is asking and what it will be able to do.
- If you belong to more than one FHIRfly organization, choose one. Usage counts against that organization's plan.
- Click Allow.
You return to ChatGPT, and FHIRfly appears under your installed plugins.
Step 4: Try it
Start a new chat, make sure FHIRfly is enabled for it, and ask something that needs reference data:
"Using FHIRfly, what is NDC 0002-8215-01, and what's its RxNorm code?"
"Find the ICD-10-CM code for type 2 diabetes with diabetic chronic kidney disease."
"Can CPT 99213 and 36415 be billed together on the same day?"
ChatGPT shows each FHIRfly tool call it makes. Because every FHIRfly tool is marked read-only, ChatGPT doesn't need to ask you to confirm them the way it does for tools that change data.
Usage and billing
- Tool calls count against the plan of the organization you chose in Step 3, exactly like API calls made with a key.
- A connected app does not count against your plan's credential limit.
Disconnect
You can disconnect from either side:
- From FHIRfly: go to Dashboard → API Credentials. Under Connected apps, click Revoke next to ChatGPT. ChatGPT loses access right away.
- From ChatGPT: remove FHIRfly from your plugins. To make sure its tokens can no longer be used, also revoke it in FHIRfly.
How the connection is secured
- OAuth 2.1 with PKCE. ChatGPT never sees your FHIRfly password or an API key.
- Dynamic Client Registration. ChatGPT registers itself with FHIRfly automatically, so there is no client ID to copy.
- Short-lived tokens. Access tokens last 10 minutes. Refresh tokens last 30 days and rotate on every use; if an old refresh token is ever replayed, the whole token family is revoked.
- Read-only tools. Every FHIRfly tool is marked read-only. None of them change data.
- Streamable HTTP. ChatGPT talks directly to FHIRfly's hosted MCP endpoint over HTTPS.
Troubleshooting
I don't see "Add custom MCP server"
- Make sure you're on chatgpt.com in a browser, not a desktop or mobile app.
- On a Business or Enterprise workspace, an admin may need to allow custom MCP servers.
Sign-in fails or the window says the app is unknown
- Check that the URL is exactly
https://api.fhirfly.io/mcpand that authentication is set to OAuth. - Remove the server and add it again.
FHIRfly is connected but ChatGPT doesn't use it
- Make sure FHIRfly is enabled for the chat.
- Ask a question that clearly needs a code lookup, or name FHIRfly in your prompt.
Requests start failing partway through the month
Your organization may have reached its plan's monthly usage. Check Dashboard → Billing, or upgrade on Pricing. An upgrade takes effect immediately.
I connected the wrong organization
Revoke the connection under Connected apps, then reconnect from ChatGPT and choose the right organization on the consent screen.
Other clients
- Connect to Claude: the same flow as a Claude custom connector
- HTTP API Reference: for clients that use an API key instead of OAuth
