guides
How to use sports odds in VS Code with the PricedOdds MCP server
To use sports odds in VS Code, add the PricedOdds MCP server and its 14 tools to a .mcp.json file at the root of the workspace, with the server URL and your key in an Authorization header. This article has the file, the two places it can go, how to limit the tools, how to see the server and two real tool answers.
What goes in .mcp.json?
{ "mcpServers": { "pricedodds": {
"type": "http",
"url": "https://api.pricedodds.com/mcp",
"headers": { "Authorization": "Bearer ${PRICEDODDS_API_KEY}" },
"tools": ["*"] } } }The server is hosted, so there is no command to run and nothing to install. Configuration checked against the PricedOdds MCP server on November 25, 2026. Not tested inside the app.
Where does the file go?
The VS Code MCP docs and the MCP configuration reference, read on November 24, 2026 and again on November 25, 2026, give two places. Both use a top-level mcpServers object.
| File | Use |
|---|---|
.mcp.json at the root of the workspace | Share the server definition with your team |
~/.copilot/mcp-config.json | Use the server across your workspaces |
The reference says the user file is $COPILOT_HOME/mcp-config.json when the COPILOT_HOME variable is set.
The workspace file comes with an experimental setting. chat.mcp.workspaceRootConfig.enabled decides whether MCP: Add Server offers the workspace-root .mcp.json. The reference adds that existing .mcp.json files stay available when that setting is off, so you can also create the file by hand.
What about .vscode/mcp.json?
It belongs to the editor-managed configuration of the Local harness, which uses a top-level servers key and an optional inputs list. What the reference marks as deprecated is the Local harness itself: it says the Local harness "is deprecated and will be removed in February 2027". For new configurations it says to use the two files above, not .vscode/mcp.json or the profile mcp.json, and to keep the editor-managed format only to maintain a setup you already have.
How do I keep the key out of the file?
With ${PRICEDODDS_API_KEY}, as in the block above. The reference says to use ${NAME} to reference a value, and that it applies to HTTP header values. Write it with the braces: the same page says the VS Code MCP client treats a bare $NAME as literal text. These two files do not support input prompts or an envFile, so set the variable in the environment VS Code starts from.
How do I limit the tools?
With the tools field. According to the reference, ["*"] makes every tool of the server available, and a list of names limits the selection. This block gives the agent three of the 14 tools.
{ "mcpServers": { "pricedodds": {
"type": "http",
"url": "https://api.pricedodds.com/mcp",
"headers": { "Authorization": "Bearer ${PRICEDODDS_API_KEY}" },
"tools": ["find_events", "get_event_odds", "compare_prices"] } } }The names are the ones the server listed when we called it on November 25, 2026. The same page says the field does not bypass tool approvals. We did not test this block inside VS Code.
How do I see the server and its output?
The page about managing MCP servers, read on November 24, 2026 and again on November 25, 2026, gives these steps.
- Open the Command Palette and run MCP: List Servers.
- Select the server and choose an available action. The page lists Start Server, Stop Server and Restart Server among the actions of a server.
- To read what the server logged, use the option on that page to view the server output.
Two things can stop the server before any request. A workspace .mcp.json inherits Workspace Trust, and the docs say that Restricted mode prevents these servers from starting. And without a valid key the PricedOdds server answers HTTP 401.
The docs say to review startup, sign-in and tool approval requests as they appear. The tools field above limits which tools the agent sees; it does not approve them for you.
What does the agent get when it looks for a game?
A request such as "show me the DraftKings and FanDuel moneyline for an NBA game" takes two tools. We did not run them inside VS Code. We called them from a script with the same URL and header on November 24, 2026, at 02:36 UTC.
First, find_events with league set to nba. It returned 20 events and a next cursor for the following page. This is the first one, shortened: the answer also has team ids, the live score by quarter and the list of books.
{ "id": "evt_sqhnkppfiynryb7z", "sport": "basketball",
"league": { "id": "nba", "name": "NBA" },
"home": { "name": "Indiana Pacers", "abbr": "IND" },
"away": { "name": "Oklahoma City Thunder", "abbr": "OKC" },
"startsAt": "2026-11-24T00:30:00.000Z", "status": "live",
"markets_available": 91 }Then, get_event_odds with that event_id, markets set to moneyline and books set to draftkings,fanduel. It returned 3 moneyline markets, one per period (1h, 2h, game). This is the full-game market, as an example and not a current price. Each price also has three timestamps that are left out here.
{ "market": "moneyline", "period": "game",
"selections": [
{ "side": "home", "line": null,
"prices": [
{ "book": "draftkings", "american": -105, "decimal": 1.952, "implied": 0.5123 },
{ "book": "fanduel", "american": 100, "decimal": 2, "implied": 0.5 } ],
"best": { "book": "fanduel", "decimal": 2, "american": 100 },
"fair": { "american": 110, "decimal": 2.104, "prob": 0.4754, "method": "market_consensus_v1" } },
{ "side": "away", "line": null,
"prices": [
{ "book": "draftkings", "american": -125, "decimal": 1.8, "implied": 0.5556 },
{ "book": "fanduel", "american": -128, "decimal": 1.781, "implied": 0.5615 } ],
"best": { "book": "draftkings", "decimal": 1.8, "american": -125 },
"fair": { "american": -110, "decimal": 1.906, "prob": 0.5246, "method": "market_consensus_v1" } } ],
"margin": { "draftkings": 0.0679, "fanduel": 0.0615 } }For each side it has the price at each book, the top one (best) and the no-vig fair price (fair). The margin object has the margin of each book in that market. The game was in progress, so these were in-game prices. Nothing here is betting advice. The formulas are in no-vig fair odds explained, and you can check one price in the implied probability calculator.
How large are the answers?
It depends on the filters. In the same run, for the same game:
| Call | Characters |
|---|---|
get_event_odds with markets set to moneyline and two books | 4,160 |
get_event_odds with markets set to spread and no books filter (13 books had a full-game price) | 10,871 |
find_events for the league, 20 events | 10,047 |
Tool output takes room in the context of a chat, so pass markets and books when you know which ones you need.
What happens when an event id is wrong?
The tool returns an error that says how to fix it. This is the answer to get_event_odds with an id that does not exist, from the same run.
{ "error": { "code": "event_not_found", "message": "No event 'evt_doesnotexist'.",
"fix": "List events with GET /v1/events?league=... and use the evt_ id.",
"docs_url": "https://pricedodds.com/docs/errors#event_not_found", "request_id": "mcp" } }Event ids come from find_events, league ids from list_leagues and market keys from list_markets.
Which tools does VS Code get?
The server has 14 tools. Thirteen read data and one, update_book_selection, changes the books on your plan, which is allowed once every 24 hours. None places a bet: PricedOdds is a data API, not a sportsbook.
list_bookslist_leagueslist_marketsfind_eventsget_event_oddscompare_pricesget_player_propsget_fair_pricefind_positive_evfind_arbitrageget_live_scoresget_coverageupdate_book_selectionget_account
What each one does is on the connect page, and the arguments are in the AI agents docs. How the server works for any agent is in the MCP server guide.
Where do I start?
The MCP server is part of the API on every plan. Every plan starts with a 3-day free trial with a $1 card verification that is refunded immediately. The plan you pick at signup is charged from day 4 unless you cancel before the trial ends. There are step-by-step articles for Claude Code, Cursor and Windsurf, and every setup is on the connect page. The books and leagues are on the coverage page, and the plans are on pricing. To get a key, create an account.