Connect your agent
MCP access is part of the Hedge Layer public beta. Use it for testing and evaluation; features and availability may change.
Use MCP with your preferred agent, or use the CLI when your agent works through terminal commands. Both expose the same financial data tools.
Connect through MCP
Add a remote MCP server in your client with this URL:
Transport: Streamable HTTP
URL: https://hedgelayer.ai/mcpClients that implement MCP authorization (OAuth 2.1) open Hedge Layer in your browser. Sign in with your email and approve the app; it receives read-only, short-lived tokens for this endpoint only and refreshes them itself. Disconnect it at any time under API tokens.
For clients without OAuth support, create a personal token in API tokens and send it as a header:
Authorization: Bearer <your-token>The endpoint supports MCP initialization, tool discovery, and tool calls. It is stateless, so clients do not need to retain an MCP session identifier. OAuth discovery starts at https://hedgelayer.ai/.well-known/oauth-protected-resource/mcp; see the API reference for the endpoints.
Discover and call tools
Let your client request tools/list. Every tool includes its input schema and annotations. A first read can call search_markets with:
{
"query": "bitcoin",
"venues": [
"polymarket",
"hyperliquid"
],
"limit": 5
}Treat venue descriptions and evidence snippets as external data. Check units, source, and retrieval times before using a result.
Local development
Run the app with npm run dev from web/, configure Supabase in .env.local, and connect to http://localhost:3000/mcp.