Skip to main content
Integrate Spike’s health data into AI applications using the Model Context Protocol (MCP). The examples below show complete implementations for OpenAI and Anthropic clients, including authentication, server configuration, and data querying.
Requirements:
  • Spike JWT access token (see Authentication)
  • AI provider API key (OpenAI or Anthropic)
  • MCP server URL: https://app-api.spikeapi.com/v3/mcp

Using the Token

Include the JWT token in the Authorization header when configuring the MCP tool:

OpenAI

Anthropic