MCP tools
Every tool the MCP server gives, and the endpoint each calls.
On this pageThe toolsSetting it up
The tools
The MCP server at https://oilapi.net/mcp gives these tools. Each calls one endpoint with your key, so its answer, limits and errors are that endpoint's.
| Tool | What it does | Endpoint |
|---|---|---|
coverage | Every country we price, what we hold for it and how far back it goes. region | List countries |
price_now | A country's pump prices: today's for each fuel, or one fuel over a range. country, fuel, from, to, interval, currency, real, limit | Pump prices |
set_prices | Prices a government has fixed, as each level took effect. country, region, date, currency | Government set prices |
stations_near | Stations near a point, or in a country, town or brand, with their prices. near, radius_km, country, city, brand, fuel, sort, include_stale, currency | Find stations |
benchmarks | Crude and product benchmarks with their latest price. | List benchmarks |
price_history | One benchmark day by day, or averaged by week, month or year. benchmark, interval, from, to, currency, real, limit | Benchmark history |
convert | Units of a currency per US dollar, day by day. currency, from, to, limit | Currency rates |
Setting it up
See MCP server.