Disclosure: Published by AffinityRx, a compounding pharmacy ordering platform. AffinityRx is not a pharmacy.
The short answer
A clinic connects ChatGPT, Claude or any other assistant that supports MCP to AffinityRx with one server address, https://api.affinityrx.com/v1/mcp, and signs in with its AffinityRx email. The assistant can then look up medications and prepare orders, but every order it creates waits in AffinityRx until an admin of the organization opens it and clicks Send.
Nothing goes to a pharmacy before an admin clicks Send. The assistant gets the same access you have in your organizations and cannot do more than you can do in the AffinityRx app.
What is MCP, and why does it matter for ordering?
MCP, the Model Context Protocol, is "an open-source standard for connecting AI applications to external systems", according to modelcontextprotocol.io (checked 2026-11-22). An assistant that supports MCP can call tools that a service publishes. AffinityRx publishes an MCP server, so an assistant can read your catalog and orders and create orders for your approval, without copying data between windows.
You do not need an API key. The assistant signs in as you, with the email code that AffinityRx sends.
How do you connect an assistant to AffinityRx?
The steps are the same in every assistant that supports MCP:
- In your assistant, add a custom MCP server. Some assistants call it a connector. Enter
https://api.affinityrx.com/v1/mcp.
- The assistant opens an AffinityRx sign-in page. Sign in with your email address and the code that AffinityRx emails you.
- Read the page. It shows the assistant's name and the site you return to. AffinityRx verifies an assistant's name only when the assistant's own site publishes it. Otherwise the page calls it an unverified app and quotes the name the assistant gave itself.
- If you know the assistant and the site, click Allow.
In Claude Code, one command adds the server:
claude mcp add --transport http affinity https://api.affinityrx.com/v1/mcp
Where do you add the server in ChatGPT and Claude?
Each assistant puts custom MCP servers in a different place, and plan rules apply. These are the vendors' own help pages, checked 2026-11-22:
| Assistant | Where to add the server | Plan notes from the vendor |
|---|
| Claude (Pro, Max) | Customize > Connectors, then + Add, then Add custom connector | Custom connectors are available on Free, Pro, Max, Ultra, Team and Enterprise. Free allows one custom connector. |
| Claude (Team, Enterprise) | An owner adds it in Organization settings > Connectors. Members then connect it in Customize > Connectors. | On Team, only Owners and Primary Owners can add connectors. |
| ChatGPT | Plugins, then the plus button, then Add custom MCP server | Full read and write MCP support is for ChatGPT Business and Enterprise/Edu, on the web only. On Business, only admins and owners can add a custom server. Pro can connect custom servers with read and fetch permissions only, so it can't create orders. |
| Claude Code, Cursor, your own agent | The client's MCP settings, or the command above | Any client that supports remote MCP servers over HTTP |
Sources: Claude Help Center, support.claude.com; OpenAI Help Center, help.openai.com (both checked 2026-11-22). Plans change, so check the vendor's page before you buy a plan for this.
What can the assistant do in AffinityRx?
The assistant can do these things, and nothing else:
- Read your organizations, practices, patients, medications and orders.
- Create an order that waits for approval. The assistant gives you a link to the order.
- Cancel an order.
- Change your first name, last name or NPI.
- Read your webhook endpoints and send a test event to an endpoint.
- For a platform, create a practice, change a practice, and turn Live orders on or off for a practice.
Each request names an organization and a mode, Test or Live. Test orders go to a pharmacy simulator, not a pharmacy, and AffinityRx does not bill them.
How does admin approval work?
An order that an assistant creates does not go to the pharmacy right away. It waits.
- Open the link the assistant gives you. It opens the order in the AffinityRx app.
- Check the order: patient, medication, quantity, directions, pharmacy and shipping.
- Click Send to send it to the pharmacy, or click Cancel.
Only an admin of the organization can send an order that waits for approval. If you are not an admin, the order page says that the order waits for an admin. Anyone who can cancel orders can cancel it, in the app, with an API key or through the assistant. The assistant itself can never click Send.
Who signs an order that an assistant prepares?
If your AffinityRx profile has your NPI, the assistant can sign the order as you. To add your NPI, open Settings, then Profile.
To order for a different prescriber, the assistant sends that prescriber's first name, last name and NPI. If your profile has no NPI and the assistant names no prescriber, AffinityRx refuses the order with 403 npi_required.
What should a clinic check before an assistant reads patient records?
The assistant's maker is a separate company from AffinityRx. When the assistant reads Live patient records, those details pass through that company's service. Before you connect an assistant to Live data, confirm that your agreement with that company covers protected health information, for example with a BAA. AffinityRx is HIPAA compliant and signs BAAs, but its BAA covers AffinityRx only.
To try the workflow first, use Test mode with synthetic patients. Test is free and optional. A clinic can send a Live order the same day it signs up.
How do you disconnect an assistant?
Open Settings, then Security & access. The MCP section shows the server address and the assistants you allowed. Click Disconnect to remove one.
The connection also stops when you sign out of the browser where you allowed the assistant, or 30 days after you signed in there. Then connect it again.
Frequently asked questions
Can ChatGPT or Claude send an order to a pharmacy by itself?
No. An assistant can create an order, but the order waits until an admin of the organization clicks Send in AffinityRx. Nothing reaches a pharmacy before that.
Do I need an API key to connect an assistant?
No. The assistant signs in as you with your email and a one-time code. API keys are for server-to-server integrations that use POST /v1/orders.
Which assistants work with AffinityRx?
Any assistant that supports remote MCP servers, for example Claude, ChatGPT, Claude Code and Cursor, or an agent you build. In ChatGPT, creating orders needs a plan with full MCP support; OpenAI lists Business and Enterprise/Edu (help.openai.com, checked 2026-11-22).
Can the assistant do more than I can?
No. The assistant gets the access you have in your organizations. If you can't send or cancel an order in the app, the assistant can't either.
Is there a charge to connect an assistant?
AffinityRx charges nothing to connect an assistant, and joining is free. Live orders are paid like any other order, with fees included in the medication price. Your assistant's own plan may cost money.
Does the assistant choose the medication?
The assistant prepares the order you or your clinician ask for, from your AffinityRx catalog. A licensed prescriber decides what to prescribe, and an admin checks the order before it is sent.
Notes
Compounded medications are not FDA-approved. Licensed compounding pharmacies fill every order on AffinityRx. This article describes software. It is not medical, pharmacy or legal advice.
The full setup reference is in the AffinityRx docs: Connect an AI agent (MCP).
Get started
Sign up free, add the MCP server to your assistant and send a first order the same day. A demo is optional; you can book one through the contact page.