About yelpdata
yelpdata is a local bridge to HasData’s hosted Yelp MCP server for clients that need business listings, details, and public reviews. It forwards three read-only fetch tools and returns upstream results unchanged.
Key features
- 01Search businesses by keyword and location
- 02Fetch full business details
- 03Read and filter public reviews
- 04Pass tool calls to HasData
Use cases
- 01Find businesses in a specified area
- 02Retrieve a listing’s contact details and hours
- 03Review ratings and public comments
MCP support
It exposes three read-only tools through an MCP server and forwards their calls to the hosted HasData Yelp MCP server. Clients can connect over stdio or use the CLI.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
Tools
3Saved tool list · updated 2d ago
| Parameter | Type | Required | Description |
|---|---|---|---|
| domain | enum | No | Yelp domain to use. Default is `www.yelp.com`.www.yelp.com | www.yelp.co.uk | www.yelp.ca | www.yelp.com.au | ms.yelp.my | www.yelp.cz | www.yelp.dk | www.yelp.de | www.yelp.at | de.yelp.ch | en.yelp.be | en.yelp.com.hk | en.yelp.my | www.yelp.co.nz | en.yelp.com.ph | www.yelp.ie | www.yelp.com.sg | en.yelp.ch | www.yelp.com.ar | www.yelp.cl | www.yelp.es | www.yelp.com.mx | fil.yelp.com.ph | fr.yelp.be | fr.yelp.ca | www.yelp.fr | fr.yelp.ch | www.yelp.it | it.yelp.ch | nl.yelp.be | www.yelp.nl | www.yelp.no | www.yelp.pl | www.yelp.com.br | www.yelp.pt | fi.yelp.fi | sv.yelp.fi | www.yelp.com.tr | www.yelp.co.jp | zh.yelp.com.hk | www.yelp.com.tw |
| placeId | string | Yes | The Yelp ID or Yelp Alias of the place. For example, 'jPIZ3FR5LNcwPuUHi2Fe4g' or 'mcdonalds-new-york-386'. |
Details
From the project READMEyelpdata
yelpdata is a small local bridge to the hosted HasData Yelp MCP server, which returns Yelp business data as JSON. It can run a business search for a keyword in a place, pull one business in full from its Yelp ID or alias, and read that business's public review feed: names, addresses, the business's published phone and website, price range, categories, overall rating, review counts, hours, and review text with the public reviewer display names as published.
The bridge holds no business data of its own. It answers the tool list locally, exactly as captured from the live endpoint, and forwards each tool call upstream, returning whatever comes back untouched. The captured surface is three read-only fetches over business-published data and public reviews: there is no reservation, ordering, messaging or payment tool in it, and no individual contact data beyond what a business or reviewer has published on Yelp.
Tools
hasdata_yelp_search_getSearchResults— search Yelp businesses. Required:keywordandlocation. Optional:l(a map-bounds radius string of the formg:lon1,lat1,lon2,lat2),domain(which national Yelp site to target), andstart(result offset for paging). Returns a ranked list of businesses with Yelp alias/ID, name, categories, rating, review count, price tier and thumbnail; feed a returned alias into the place tool for the full record.hasdata_yelp_place_getPlaceDetails— fetch one business in full. Required:placeId(a Yelp ID or Yelp alias). Optional:domain. Returns name, address, phone, website, price range, categories, overall rating, review count, hours, amenities, photos and highlighted reviews.hasdata_yelp_reviews_getPlaceReviews— read one business's review feed. Required:placeId. Optional:domain,query(free-text search within the reviews),sortBy(relevanceDesc,dateDesc,dateAsc,ratingDesc,ratingAsc,elitesDesc),rating(star-rating filter, comma-separated values allowed),languageCode,notRecommended(return the reviews Yelp does not currently recommend), and paging viastart/numor the opaquenextPageTokenfrom a previous response. Each review returns its author profile as published, full text, star rating, timestamp, photos and videos, reader reactions and the owner reply when present, plus the business's review totals by rating and by language.
Configuration
HASDATA_YELP_MCP_URL(optional) — override the upstream endpoint. Defaults tohttps://mcp.hasdata.com/mcp?apis=yelp. (The override hook is this rebuild's own labelled reconstruction.)HASDATA_API_KEY(optional) — when set, every upstream request carries anx-api-key: <key>header, for the caller's own HasData API key. When it is not set, no key header is sent. (The header name and the env name are pinned by the original's registry record; forwarding the key from this env var is a labelled reconstruction — the original surface was captured keyless.)
Forwarding mechanics
On the first tool call the client opens a streamable
HTTP session upstream: a JSON-RPC initialize request
(protocolVersion 2025-03-26, clientInfo name
yelpdata), then a notifications/initialized
notification, then the tools/call request carrying
the caller's arguments unchanged. When the upstream
answers initialize with an Mcp-Session-Id header,
that value rides on every later request of the
session, which is reused for the life of the process.
Replies may arrive as plain JSON or as server-sent
events; both are read.
Successful upstream results pass through verbatim,
including any isError flag the upstream sets.
Failures — a JSON-RPC error, a non-2xx status, an
unreadable response, or a request that cannot be
completed — come back as an isError result whose
text starts with yelpdata error: (this rendering is
this rebuild's own labelled reconstruction).
CLI
Each tool is also a subcommand taking one JSON argument string:
npx @reneturcios/yelpdata hasdata_yelp_search_getSearchResults '{"keyword":"coffee","location":"Seattle, Washington"}'
npx @reneturcios/yelpdata hasdata_yelp_place_getPlaceDetails '{"placeId":"mcdonalds-new-york-386"}'
npx @reneturcios/yelpdata hasdata_yelp_reviews_getPlaceReviews '{"placeId":"-4ofMtrD7pSpZIX5pnDkig","sortBy":"dateDesc"}'
npx @reneturcios/yelpdata --version
Exit codes: 0 on success, 1 on an isError
result, 2 on a usage error.
MCP server
npx -y @reneturcios/yelpdata mcp
MCP client config:
{
"mcpServers": {
"yelpdata": {
"command": "npx",
"args": ["-y", "@reneturcios/yelpdata", "mcp"]
}
}
}
Docker
docker run -i ghcr.io/cloudcorprecords/yelpdata
docker run --rm ghcr.io/cloudcorprecords/yelpdata --version
The container's default command is mcp, so the first
form is a stdio MCP server; any other arguments reach
the CLI normally.
Development
npm install
npm run build
npm test
npm run dev
The test suite runs entirely against a stubbed JSON-RPC upstream — no live network calls.
License
MIT — see LICENSE.
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.