Agent setup
Use FanDuel API with your agent
Short answerEvery agent connects the same way: the MCP server at https://fanduelapi.com/api/mcp over streamable HTTP, with Authorization: Bearer <your key> (FANDUEL_API_KEY). Pick your client below for its exact config file and format. Without a key, the docs and sample tools still answer; with one, the agent reads live props, the odds board and full game reports.
FanDuel API is an independent data service operated by FF API Inc. It is not affiliated with, endorsed by or sponsored by FanDuel.
The one server every client uses
https://fanduelapi.com/api/mcpAuthorization: Bearer $FANDUEL_API_KEYTools include list_props, odds_board, game_report, line_move and recent_changes. Full detail on the MCP setup page; the agent-readable version is agents.md, and llms.txt lists every page.
Assistants
Chat apps: a connector for docs and a sample, or your key through an action or a bridge.
- Claude: Run one claude mcp add command with your key in a header, or add https://fanduelapi.com/api/mcp as a custom connector in Claude to search the docs and read a delayed sample without a key.
- ChatGPT: Create a custom GPT and import https://fanduelapi.com/openapi-chatgpt.json as an Action with your key as a Bearer API key. To evaluate first, add https://fanduelapi.com/api/mcp as a connector with no authentication: it exposes search, fetch and a delayed sample.
Coding agents and editors
One config file or one command; the key stays in your environment or the editor's secret store.
- Codex: Run codex mcp add with --url https://fanduelapi.com/api/mcp and --bearer-token-env-var FANDUEL_API_KEY, or add the same two keys under [mcp_servers.fanduelapi] in ~/.codex/config.toml.
- Cursor: Add https://fanduelapi.com/api/mcp to .cursor/mcp.json with a url and an Authorization header that uses ${env:FANDUEL_API_KEY}, then enable it under Settings, MCP.
- Windsurf: Add https://fanduelapi.com/api/mcp as serverUrl under mcpServers in ~/.codeium/windsurf/mcp_config.json, with an Authorization header that reads ${env:FANDUEL_API_KEY} from your environment, then refresh the MCP list in Cascade.
- VS Code and GitHub Copilot: Add a server of type http with url https://fanduelapi.com/api/mcp in .vscode/mcp.json and an Authorization header that reads the key from a password input, then pick fanduelapi's tools in Copilot Chat agent mode.
- Gemini: Add https://fanduelapi.com/api/mcp under mcpServers in ~/.gemini/settings.json with httpUrl and an Authorization header that reads $FANDUEL_API_KEY from your environment.
- Zed: Add fanduelapi under context_servers in Zed's settings.json with url https://fanduelapi.com/api/mcp and an Authorization header, then turn it on in the agent panel settings.
- Cline: In Cline, MCP Servers, Configure, add fanduelapi to cline_mcp_settings.json with type streamableHttp, url https://fanduelapi.com/api/mcp and an Authorization header.
- Continue: Add an mcpServers entry to Continue's config.yaml with type streamable-http, url https://fanduelapi.com/api/mcp and requestOptions.headers.Authorization set from a Continue secret, then use it in Agent mode.
Any MCP client
The URL, the transport, the header and a bridge for clients that only run local servers.
- any MCP client: Point the client at https://fanduelapi.com/api/mcp over streamable HTTP and send Authorization: Bearer <your key>. A client that only runs local stdio servers can bridge with npx mcp-remote. Without a key the docs and sample tools still work.
App builders and other models
Call the API from an app's backend, or pass the server to a model API.
- Lovable: Store the key as a secret named FANDUEL_API_KEY in your Lovable project's backend, call https://fanduelapi.com/api/v1/props from an edge function, and have the page read from that function. Never put the key in browser code.
- Grok: In an xAI API request, add a tool of type mcp with server_url https://fanduelapi.com/api/mcp, a server_label, and authorization set to Bearer and your key. Grok then calls the props tools itself.
Questions
Which AI agents work with FanDuel API?
Any client that speaks MCP over streamable HTTP, which includes Claude Code, Claude, ChatGPT, Codex, Cursor, Windsurf, VS Code with GitHub Copilot, Gemini CLI, Zed, Cline and Continue. Agent frameworks connect the same way, and anything else can use the REST API.
Where does the API key go?
In the Authorization header as Bearer <key>. Each guide reads it from an environment variable (FANDUEL_API_KEY) or the client's secret store, so it never lands in a committed file.
Can the agent sign me up?
Yes. It can start a Free account through https://fanduelapi.com/connect; you approve it from your email and the agent collects the key.