AffinityRx
Products
AffinityRx for Clinics30+ pharmacies in our network. One dashboard / API. Partners save an average of 30%.AffinityRx for TelehealthOne API. 30+ pharmacies in our network. Fewer backorders.AffinityRx for Whitelabel TelehealthOne pharmacy API for every brand you serve.AffinityRx for PharmaciesReach independent practices through one connection.
Company
About UsWhy we built AffinityRx and how it works.Our TeamThe people behind AffinityRx.Contact UsReach our support team directly.CareersDo your life's work at AffinityRx.Partner ProgramEarn 30% of our margin on referrals for 1 year.InvestorsThe business model, market, and team.
Resources
MedicationsThe full catalog and every medication page.PharmaciesPharmacy profiles, state coverage, and FDA actions.SolutionsHow AffinityRx works for each kind of clinic and brand.BlogGuides to compounding pharmacies, pricing, and ordering.
Products
AffinityRx for Clinics30+ pharmacies in our network. One dashboard / API. Partners save an average of 30%.AffinityRx for TelehealthOne API. 30+ pharmacies in our network. Fewer backorders.AffinityRx for Whitelabel TelehealthOne pharmacy API for every brand you serve.AffinityRx for PharmaciesReach independent practices through one connection.
Company
About UsWhy we built AffinityRx and how it works.Our TeamThe people behind AffinityRx.Contact UsReach our support team directly.CareersDo your life's work at AffinityRx.Partner ProgramEarn 30% of our margin on referrals for 1 year.InvestorsThe business model, market, and team.
Resources
MedicationsThe full catalog and every medication page.PharmaciesPharmacy profiles, state coverage, and FDA actions.SolutionsHow AffinityRx works for each kind of clinic and brand.BlogGuides to compounding pharmacies, pricing, and ordering.
Products
AffinityRx for Clinics30+ pharmacies in our network. One dashboard / API. Partners save an average of 30%.AffinityRx for TelehealthOne API. 30+ pharmacies in our network. Fewer backorders.AffinityRx for Whitelabel TelehealthOne pharmacy API for every brand you serve.AffinityRx for PharmaciesReach independent practices through one connection.
Company
About UsWhy we built AffinityRx and how it works.Our TeamThe people behind AffinityRx.Contact UsReach our support team directly.CareersDo your life's work at AffinityRx.Partner ProgramEarn 30% of our margin on referrals for 1 year.InvestorsThe business model, market, and team.
Resources
MedicationsThe full catalog and every medication page.PharmaciesPharmacy profiles, state coverage, and FDA actions.SolutionsHow AffinityRx works for each kind of clinic and brand.BlogGuides to compounding pharmacies, pricing, and ordering.
PricingDocs
Talk to salesGet started
AffinityRx
Talk to salesGet started
Home/Blog/How can a clinic order compounded medications through ChatGPT, Claude or another AI assistant?

How can a clinic order compounded medications through ChatGPT, Claude or another AI assistant?

MCP

Connect ChatGPT, Claude or any MCP assistant to AffinityRx. It prepares compounded medication orders; nothing reaches a pharmacy until an admin clicks Send.

Get started

By Tim Yoon. Published November 22, 2026

Keep reading

  • AffinityRx pricing guide: what clinics and platforms pay, and how billing worksAffinityRx
  • AffinityRx Objections Answered: "We Already Have a Pharmacy" and MoreAffinityRx
PreviousCan clinics order compounded testosterone or other controlled substances through an ordering platform?NextHow does a telehealth platform pay for and manage its practices' orders under one account?

Every compounding pharmacy in one dashboard

Sign up free to compare prices across the pharmacies live on AffinityRx.

Get started

On this page

  1. The short answer
  2. What is MCP, and why does it matter for ordering?
  3. How do you connect an assistant to AffinityRx?
  4. Where do you add the server in ChatGPT and Claude?
  5. What can the assistant do in AffinityRx?
  6. How does admin approval work?
  7. Who signs an order that an assistant prepares?
  8. What should a clinic check before an assistant reads patient records?
  9. How do you disconnect an assistant?
  10. Frequently asked questions
  11. Notes
  12. Get started
  13. Related reading
AffinityRx

30+ pharmacies in our network. One dashboard / API. Save time and money.

Verify Approval for www.affinityrx.com

Products

  • Clinics
  • Telehealth
  • Whitelabel Telehealth
  • Pharmacies
  • Pricing

Company

  • About Us
  • Our Team
  • Contact Us
  • Careers
  • Partner Program
  • Investors
  • Brand assets

Resources

  • Medications
  • Pharmacy directory
  • Solutions
  • Blog
  • Features
  • Challenges
  • How to choose a pharmacy
  • How to choose an ordering platform

Developers

  • API docs
  • Build an integration
  • Webhooks
  • MCP
  • Changelog

Support

  • Call us: 714-254-5656
  • Email us
  • Service availability
  • Terms of Service
  • Privacy Policy
© 2026 Incubator LLC d/b/a AffinityRx · support@affinityrx.com
Call 714-254-5656Get started

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:

  1. In your assistant, add a custom MCP server. Some assistants call it a connector. Enter https://api.affinityrx.com/v1/mcp.
  2. The assistant opens an AffinityRx sign-in page. Sign in with your email address and the code that AffinityRx emails you.
  3. 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.
  4. 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:

AssistantWhere to add the serverPlan notes from the vendor
Claude (Pro, Max)Customize > Connectors, then + Add, then Add custom connectorCustom 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.
ChatGPTPlugins, then the plus button, then Add custom MCP serverFull 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 agentThe client's MCP settings, or the command aboveAny 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.

  1. Open the link the assistant gives you. It opens the order in the AffinityRx app.
  2. Check the order: patient, medication, quantity, directions, pharmacy and shipping.
  3. 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.

Related reading

How much do compounded medications cost clinics? 2026 price reportAffinityRx pricingCompounded medications on AffinityRx