Diagnosis API
MCP
Model Context Protocol integration for Avey diagnosis APIs
Introduction
Avey now supports MCP! Empower your agentic workflows with end-to-end self-diagnostic capabilities — from launching sessions to guiding Q&As, generating structured assessments, and beyond, all in one frictionless flow.
Using MCP with the Diagnosis API offers:
Flexible workflows
Call tools directly from your code or delegate flow control to an LLM.
Built-in orchestration
Seamlessly coordinate multi-step diagnostic workflows.
Prerequisites for this guide
- Avey API key with Diagnosis API access.
MCP server URL
https://mcp.avey.ai/ddx
Authentication
Authorization: Bearer <your-api-key>
Quickstart
Step 1 — Obtain your API key
Email support@avey.ai to receive your API key.
Step 2 — Test with MCP Inspector
Use the MCP Inspector to validate your setup and check that tools are available.
Step 3 — Integrate
Run a test call, then proceed with your integration.
Tools
Tool Name | Purpose | API |
---|---|---|
start_diagnostic_session | Starts a new interactive diagnostic session. | Create session |
answer_diagnostic_question | Submits a user’s answer and returns the next step in the patient’s assessment. | Update session |
get_patient_assessment | Generates the final patient assessment and recommendations. | Get diagnosis |
Resources
How is this guide?