mcp-pricescout
Provides tools for storing scraped LLM inference pricing data in a SQLite database, enabling persistent storage and querying of cost information across providers.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-pricescout Compare cloudrift and deepinfra costs for deepseek v3"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
In this project, you are going to make a chatbot to scrape LLM Inference Serving websites to research costs of serving various LLMs. You will do this by writing an MCP Server that hooks up to Firecrawl's API and saving the data in a SQLite Database. You should use the following websites to scrape:
"cloudrift": "https://www.cloudrift.ai/inference"
"deepinfra": "https://deepinfra.com/pricing"
"fireworks": "https://fireworks.ai/pricing#serverless-pricing"
"groq": "https://groq.com/pricing"
Make a venv with uv
Sync venv with pyproject.toml (
uv sync)Make an API Key on Anthropic and Firecrawl
Complete the 2 tool calls in
starter_server.pyChange the
server_config.jsonto point to your server fileComplete any section in
starter_client.pythat has "#complete".Test using any methods taught in the course
Use the following prompts in your chatbot but play around with all the LLM providers in the list above:
"How much does cloudrift ai (https://www.cloudrift.ai/inference) charge for deepseek v3?"
"How much does deepinfra (https://deepinfra.com/pricing) charge for deepseek v3"
"Compare cloudrift ai and deepinfra's costs for deepseek v3"
Environment notes
Two dependency-drift issues surfaced against the packages actually resolved at implementation time (Aug 2026), fixed rather than worked around:
firecrawl-py's.scrape()has nosuccesskey. The currently-installedfirecrawl-py(v4.38.0, the only version whose.scrape(url, formats=...)method matches this assignment's shape) raises on failure and returns aDocumentwith nosuccessfield on success — unlike the older API this assignment's instructions describe.starter_server.py'sscrape_result.get("success", True)defaults toTrueinstead ofFalseso real successful scrapes are actually detected (an explicitsuccess: false, if a future/older version ever returns one, still works).mcp-server-sqlitecrashes against the latestmcppackage. Its last release (Apr 2025) pinsmcp[cli]>=1.6.0with no upper bound, and currentmcpreleases removed theServer.list_resourcesdecorator it depends on.server_config.json's sqlite entry pins a compatiblemcpversion for that one subprocess only, viauvx --with "mcp<1.10" mcp-server-sqlite ...— this doesn't affect themcpversion this project itself uses.
If using a Vocareum-proxied Anthropic key (voc-...), set
ANTHROPIC_BASE_URL=https://claude.vocareum.com in .env alongside
ANTHROPIC_API_KEY — starter_client.py reads it and passes it to the
Anthropic client; leaving it unset uses the standard Anthropic API.
Related MCP server: LLM Pricing Scraper MCP Server
Verified live
Real end-to-end run, evidence in evidence/ — full transcript, real scraped
content, and what each piece of it proves. All four required items are demonstrated,
including a real Firecrawl scrape (Successfully scraped N out of N websites). Three real
bugs surfaced only by actually running this, none visible in code review or offline testing:
load_dotenv()doesn't override an already-set environment variable by default. This machine has an ambient user-levelANTHROPIC_BASE_URLpointing at the standard API (unrelated to this project), which silently took precedence over.env's Vocareum URL — every request went toapi.anthropic.comwith avoc-...key and got a clean401 invalid x-api-key. Fixed withload_dotenv(override=True), which is the correct behavior for a project's own.envregardless of ambient state.process_query's tool-use loop broke when a single response contained more than onetool_useblock — a real, common pattern (Claude often batches several tool calls in one turn). The original loop calledself.anthropic.messages.create()again inside thefor content in response.content:loop, reassigningresponsewhile that sameforloop kept iterating the old content list — so a second tool_use in the same response never got its matching tool_result appended, and the next API call failed with400: tool_use ids were found without tool_result blocks immediately after. Fixed by collecting every block of a response (text to print, all tool_use calls to execute) before making the next call, and sending all of that turn's tool_results together in one message, matching what the API actually requires.mcp-server-sqlite'sread_queryreturns Pythonrepr()-style output, not JSON — single-quoted ("[{'company_name': 'x', ...}]"), which looks like JSON at a glance but makesjson.loads()fail immediately (Expecting property name enclosed in double quotes).show_stored_datanow parses it withast.literal_eval()instead, which handles the format actually being sent.
Available Tools
2 toolsextract_scraped_infoB
Extract information about a scraped website.
Args: identifier: The provider name, full URL, or domain to look for
Returns: Formatted JSON string with the scraped information
Inputs: identifier (required). Returns: result
scrape_websitesC
Scrape multiple websites using Firecrawl and store their content.
Args: websites: Dictionary of provider_name -> URL mappings formats: List of formats to scrape ['markdown', 'html'] (default: both) api_key: Firecrawl API key (if None, expects environment variable)
Returns: List of provider names for successfully scraped websites
Inputs: websites (required), api_key, formats. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The two tools have clearly distinct roles: one initiates the scraping workflow and the other retrieves previously scraped data. There is minor potential for confusion about what 'extract' means in the naming, but the descriptions resolve the boundary.
Both tools follow a consistent verb_object pattern with snake_case: scrape_websites and extract_scraped_info. The naming style is uniform and predictable.
Two tools is on the low end for a price-scouting server, but the pair covers a minimal scrape-then-retrieve workflow. It feels thin rather than bloated, so it is borderline acceptable.
The server appears aimed at price monitoring, but there is no tool for searching, comparing, updating, or deleting scraped data. The surface only supports scraping and retrieving stored content, leaving significant gaps for a typical price-scout use case.
Maintenance
Related MCP Connectors
Look up, compare and track AI model API prices from an AI assistant. No sign-in needed.
Live LLM API pricing: token prices, comparisons, cheapest-model lookups. No key required.
Extract structured pricing tiers and addons from any SaaS pricing page URL. Built for AI agents.
LLM API prices and AI agent cost estimates, verified daily. Read-only cost lookup tools.
Related MCP Servers
- FlicenseBqualityDmaintenanceEnables scraping and comparing pricing information for LLM inference services across multiple providers (CloudRift, DeepInfra, Fireworks, Groq) using Firecrawl API and SQLite storage.2-
- FlicenseAqualityDmaintenanceEnables scraping and comparison of LLM inference pricing from multiple providers like Cloudrift, DeepInfra, Fireworks, and Groq, storing results in a SQLite database.2-
- FlicenseNot gradedqualityDmaintenanceEnables scraping LLM inference pricing from websites like Cloudrift, DeepInfra, Fireworks, and Groq, storing results in SQLite for cost comparison.-
- FlicenseAqualityDmaintenanceEnables scraping and comparing LLM inference pricing from multiple providers using Firecrawl, storing results in SQLite for analysis.2-