Flexpa
Developer PortalGet SandboxTry it yourself

Guides

  • Home
  • Quickstart
  • Agent guide
  • Claims data guide
  • Financial data guide
  • Parsing FHIR data

Network

  • Network guide
  • Directory
  • Directory MCP server
    • Configuration
    • Tools
    • Prompts
    • Use cases
    • Next steps

Consent

  • OAuth
  • Patient linking
  • Usage patterns
  • Patient access

Records

  • FHIR API
  • Data Sheet
  • Node SDK
  • SMART Health Links API
  • Terminology

Misc

  • Changelog
  • Support
  • Flexpa OS
  • We're hiring

Directory MCP server

Beta — This feature is subject to change. The MCP specification and our implementation may evolve.

The Endpoint Directory MCP server enables AI assistants to search and validate health insurance and healthcare provider endpoints programmatically. Unlike the patient data MCP server, the directory server is public and does not require authentication.

Use it to build payer or provider selection flows, validate endpoint support for specific plan types, or let AI agents help users find their health insurance company or healthcare provider.

Endpoint

POST https://api.flexpa.com/mcp/directory

No authentication required. The directory server is read-only and exposes only public endpoint metadata.


#Configuration

#Claude Desktop / Claude.ai

Add the directory as a custom connector:

  1. Go to Settings → Custom Connectors
  2. Click Add Custom Connector
  3. Enter a name (e.g., "Flexpa Directory")
  4. Enter the URL: https://api.flexpa.com/mcp/directory
  5. Click "Connect"

No authorization flow is required — the directory is public.

Claude Code

claude mcp add flexpa-directory \
  --transport http \
  https://api.flexpa.com/mcp/directory

#Tools

The directory server provides four tools for discovering and validating endpoints.

#search_endpoints

Search for health insurance payers and healthcare providers by name, brand, acronym, or state.

Returns up to 10 matching endpoints with organization details, connection status, and supported lines of business.

Parameters

querystringRequired

Search query — payer name, provider name, brand, acronym, or state. Examples: "Aetna", "BCBS Illinois", "Mayo Clinic"

Blue Cross Blue Shield is a federation of independent companies per state. If a user says "BCBS", the tool's instructions guide the AI to ask which state before searching.

{
  "name": "search_endpoints",
  "arguments": {
    "query": "Aetna"
  }
}

#get_endpoint_details

Get detailed information about a specific endpoint, including supported lines of business with authentication flow info, connection status, and features like inactive member access and 2FA requirements.

Parameters

endpointIdstringRequired

The endpoint ID from search_endpoints results

{
  "name": "get_endpoint_details",
  "arguments": {
    "endpointId": "abc-123"
  }
}

#check_lob_support

Validate whether an endpoint supports a specific line of business (plan type) and determine the correct authentication flow.

Lines of business:

TypeFlow
medicaidOAuth
medicare_advantageOAuth
chipOAuth
aca_on_exchangeOAuth
aca_off_exchangeOAuth or Credentials
employerOAuth or Credentials
original_medicareSpecial
veteransSpecial

Parameters

endpointIdstringRequired

The endpoint ID from search_endpoints

lineOfBusinessstringRequired

One of the line of business types listed above

{
  "name": "check_lob_support",
  "arguments": {
    "endpointId": "abc-123",
    "lineOfBusiness": "employer"
  }
}

The response includes pass/fail validation, the authentication flow type (OAuth or Credentials), and recommended next steps.

#list_endpoints

List all endpoints in the directory, optionally filtered by status or line of business.

Parameters

statusstring

Filter by connection status. Default: CONNECTED

lobTypestring

Filter by line of business support

limitnumber

Maximum results to return (default 50, max 100)

{
  "name": "list_endpoints",
  "arguments": {
    "lobType": "medicaid",
    "limit": 20
  }
}

#Prompts

The directory server includes three prompts that guide AI assistants through common workflows.

PromptDescription
find_insuranceWalks through identifying a user's insurer, plan type, and validating endpoint support
find_providerWalks through finding a healthcare provider or medical record system
explore_directoryBrowse all available endpoints with line of business details

Prompt invocation

{
  "method": "prompts/get",
  "params": {
    "name": "find_insurance"
  }
}

#Use cases

AI-powered endpoint selection — Let an AI assistant guide users through finding their health insurance company (find_insurance) or healthcare provider (find_provider). The insurance prompt handles BCBS state disambiguation, Medicaid regional plans, and plan type identification automatically.

Endpoint validation — Before initiating a patient authorization, validate that the endpoint supports the user's plan type and determine whether to use the OAuth or Credentials flow.

Directory exploration — Build tools that help operations teams browse available payer and provider endpoints, filter by line of business, and understand coverage gaps.


#Next steps

  • Browse the Endpoint Directory for endpoint details and connection statuses
  • Read the Agent guide for MCP integration patterns with patient data
  • Review Consent for OAuth and Credentials authorization flows
Status TwitterGitHub

© 2026 Flexpa. All rights reserved.

On this page
  • Configuration
  • Claude Desktop / Claude.ai
  • Tools
  • search_endpoints
  • get_endpoint_details
  • check_lob_support
  • list_endpoints
  • Prompts
  • Use cases
  • Next steps