Give a clearer picture this holiday.Send a Control Health gift, or invite a friend for $25 off their first panel.Send a gift

Connect your agent

Connect Cursor

Add Control Health to Cursor in mcp.json. Cursor's agent can then search the lab catalog, build and price a personalized panel, build the order you pay for and read your results. Handy while you build on Control Health.

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/mcp

Add Control Health to Cursor

  1. Open ~/.cursor/mcp.json to have Control Health in every project, or .cursor/mcp.json in one project.
  2. Add Control Health under mcpServers with the server URL, as below. No headers or keys: you sign in with OAuth.
  3. 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

  1. Cursor opens Control Health in your browser. Sign in, or create an account.
  2. Control Health shows Connect Cursor to Control Health and everything it is asking to do (the list is below).
  3. Choose Allow to connect, or Don't allow. It is all or nothing: you allow everything listed, or nothing.
  4. 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

  1. 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.
  2. Ask the agent: "Find a thyroid panel on Control Health and tell me what it costs." It should call search_catalog and 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_catalog and get_test.
  • "Build me a panel under $400 for fatigue and thyroid concern." Uses intake_questions, recommend_panel, estimate_order and create_order.
  • "What do my latest results say about my iron?" Uses list_orders and get_results.
  • "Book my lab visit for next week." Uses list_orders, list_slots and book_appointment.

Disconnect

  1. 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.
  2. Choose Disconnect and confirm. Cursor loses access at once; to use Control Health again it has to ask you again.
  3. 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.

Read this page as Markdown