TypeScript SDK
Type-safe client with full autocompletion.
MCP Server
Connect AI assistants directly to Struct data.
AI Skill
Install via skills.sh for instant access in your agent.
TypeScript SDK
The Struct SDK gives you a fully typed client for all Polymarket endpoints. Install it and start querying in seconds.SDK Reference
Full documentation, examples, and source code.
MCP Server
Struct exposes a Model Context Protocol (MCP) server that lets AI assistants query prediction market data directly. The MCP server is available atapi.struct.to/mcp and supports two authentication methods.
OAuth (for AI assistants)
For AI assistants like ChatGPT and Claude that support OAuth-based MCP connections, simply connect using the MCP URL:API Key (for backend agents)
For backend AI agents and programmatic access, connect to the MCP server directly with your API key:AI Skill
Install the Struct skill to give any Claude Code agent instant access to Struct’s Polymarket data.Choose Your Path
| Approach | Best For |
|---|---|
| REST API | Full control, any language, custom integrations |
| TypeScript SDK | TypeScript/JavaScript projects with type safety |
| MCP Server (OAuth) | AI assistants like ChatGPT and Claude |
| MCP Server (API Key) | Backend AI agents and programmatic access |
| AI Skill | Claude Code agents via skills.sh |