Before you start
- Cursor, with its agent. It talks to Control Health over streamable HTTP and signs in with OAuth (authorization code with PKCE, registering itself as a client).
- Cursor's guide: Model Context Protocol (MCP).
- A Control Health account. No account yet? You can create one when Cursor asks you to sign in.
The Control Health MCP server URL, the one address you give your agent:
https://api.controlhealth.ai/mcpAdd Control Health to Cursor
- Open
~/.cursor/mcp.jsonto have Control Health in every project, or.cursor/mcp.jsonin one project. - Add Control Health under
mcpServerswith the server URL, as below. No headers or keys: you sign in with OAuth. - Save. Control Health shows up in Cursor's MCP servers under Customize in the sidebar; sign in from there when Cursor asks.
{
"mcpServers": {
"control-health": {
"url": "https://api.controlhealth.ai/mcp"
}
}
}Sign in and allow
- Cursor opens Control Health in your browser. Sign in, or create an account.
- Control Health shows Connect Cursor to Control Health and everything it is asking to do (the list is below).
- Choose Allow to connect, or Don't allow. It is all or nothing: you allow everything listed, or nothing.
- You are sent back to Cursor, connected.
What an agent can ask to do:
- See your profile summary and which data sources you've connected (
profile) - Search lab tests and panels and get prices (
catalog) - Ask you intake questions and build a personalized panel (
recommend) - See your orders and appointments, and start an order you confirm (
orders) - Read your lab results (
results) - Send you health summaries, health conversations with AI assistants and records exports to review; nothing is saved until you keep it (
import)
Nothing is ordered or paid for without you. An agent builds an order and gives you a checkout link; you review it and pay in Control Health. It books, moves or cancels a lab visit only after you agree.
Check it works
- In Customize, check Control Health is turned on and lists its tools. If it does not, open the Output panel (Cmd+Shift+U on a Mac), choose MCP Logs and read the error.
- Ask the agent: "Find a thyroid panel on Control Health and tell me what it costs." It should call
search_catalogand answer with a test and its price.
Building an agent on Cursor? Run the golden-path test to see it go from one prompt to a checkout link.
Example prompts
- "Search the Control Health catalog for tests that measure ferritin and show their prices." Uses
search_catalogandget_test. - "Build me a panel under $400 for fatigue and thyroid concern." Uses
intake_questions,recommend_panel,estimate_orderandcreate_order. - "What do my latest results say about my iron?" Uses
list_ordersandget_results. - "Book my lab visit for next week." Uses
list_orders,list_slotsandbook_appointment.
Disconnect
- In Control Health, open Settings, then Security. Under Connected agents you see Cursor, what it can do, when it connected and when it was last used.
- Choose Disconnect and confirm. Cursor loses access at once; to use Control Health again it has to ask you again.
- To stop using it in Cursor, turn Control Health off in Customize, or remove it there or from
mcp.json.
Important
Educational information and lab-ordering support only. Not medical advice, diagnosis or treatment: the person should review their results with a clinician. In an emergency, call 911. Nothing is ordered or paid without the person: an agent builds an order, and the person confirms and pays for it in Control Health. Book, move or cancel a lab visit only after the person agrees, and a cancellation is always confirmed by the person.