HasData Yellow Pages

com.hasdata由 hasdata.com 發布官方發布者v1.0.2更新於 Oct 24, 2026

Yellow Pages local business search and full business listings, as structured JSON.

發布方自己的服務:HasData Airbnb

已驗證Streamable HTTP可網頁執行網頁搜尋與抓取商業與電商

概覽

AI 產生的概覽

由 HasData 託管的 MCP 伺服器,讓助理以結構化 JSON 搜尋黃頁商家清單,並讀取單一商家的完整資料。

可以做什麼
  • 依關鍵字與地點搜尋在地商家,支援排序、翻頁以及美國或加拿大站點
  • 依連結讀取單筆黃頁商家詳情:地址、電話、營業時間、評分、付款方式、服務項目、品牌與照片連結
  • 以資源形式讀取 sort 與 domain 參數的固定選項,不消耗額度
適用情境
適合讓助理從黃頁建立或補充在地服務類商家名單,例如某城市的水電行或空調承包商,並取得商家自述的服務、品牌與付款條件。僅供讀取,不需要瀏覽器或自行架設擷取環境。
執行需求
需要 HasData API 金鑰:遠端端點以 x-api-key 標頭傳入,npm 或 PyPI 的 stdio 啟動器則以 HASDATA_API_KEY 環境變數傳入。npm 套件需要 Node.js,PyPI 套件以 uvx 執行。需要能連線到託管端點。不需要黃頁帳號。
安裝前請注意
呼叫以 HasData 額度計費:每次成功呼叫 10 額度,每月 1,000 免費額度,付費方案每月 59 美元起,翻頁與逐筆補充資料會累積消耗。結果為公開商家資料,個人商號條目可能含本人姓名與手機號碼,以電話或簡訊聯繫另受法規規範。部分欄位經常缺漏,website 有時指回黃頁本身。HasData 與黃頁並無隸屬關係。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 HasData Yellow Pages,將其新增到工作區。
  2. 連接 x-api-key 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
  3. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/com.hasdata%2Fyellowpages/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "hasdata-yellow-pages": {
      "type": "http",
      "url": "https://mcp.hasdata.com/mcp?apis=yellowpages",
      "headers": {
        "x-api-key": "<YOUR_API_KEY>"
      }
    }
  }
}

README

Yellow Pages MCP Server

A hosted Yellow Pages MCP server that gives Claude, Cursor, Windsurf and any other MCP client two read-only Yellow Pages tools. Search local businesses by keyword and location, then read one listing in full with its phone, hours, services and photos, both as structured JSON, with nothing to host.

It reads public Yellow Pages listings that a signed-out visitor can see, on yellowpages.com and yellowpages.ca.

1,000 free credits every month, no card required, which is 100 Yellow Pages calls at the 10-credit rate.

https://mcp.hasdata.com/mcp?apis=yellowpages

[Glama score] [tool contract] [MCP] [Tools]

Contents

What you need

An MCP client and a HasData API key from the dashboard, free to create with no card, and the free tier covers about 100 calls a month at the 10-credit rate. This is a remote server, so the simplest path is a URL and an x-api-key header, with no container to run. A client that only speaks stdio reaches it through a thin launcher, published as @hasdata/yellowpages-mcp on npm and hasdata-yellowpages-mcp on PyPI, shown below.

Quick start

The server URL is the same for every client. We run it hands-on in Claude Code and Claude Desktop. The other blocks follow each client's own documented format for a remote server.

FieldValue
URLhttps://mcp.hasdata.com/mcp?apis=yellowpages
TransportHTTP, streamable
Auth headerx-api-key: HASDATA_API_KEY

Clients with OAuth support can add the same URL as a connector and sign in without putting a key in a config file.

Claude Code
bash
claude mcp add --transport http yellowpages "https://mcp.hasdata.com/mcp?apis=yellowpages" \  --header "x-api-key: HASDATA_API_KEY"
Claude Desktop

Settings, then Connectors, then Add custom connector, then paste https://mcp.hasdata.com/mcp?apis=yellowpages and sign in.

For the config-file route, Claude Desktop loads only local (stdio) servers, so it reaches a remote server through a stdio launcher. The @hasdata/yellowpages-mcp package is that launcher, and it reads the key from the environment. Add this to claude_desktop_config.json:

json
{  "mcpServers": {    "yellowpages": {      "command": "npx",      "args": ["-y", "@hasdata/yellowpages-mcp"],      "env": { "HASDATA_API_KEY": "YOUR_KEY" }    }  }}

For Python instead of Node, swap the launcher for the PyPI package, which uvx runs without a manual install:

json
{  "mcpServers": {    "yellowpages": {      "command": "uvx",      "args": ["hasdata-yellowpages-mcp"],      "env": { "HASDATA_API_KEY": "YOUR_KEY" }    }  }}
Cursor

~/.cursor/mcp.json for every project, or .cursor/mcp.json for one:

json
{  "mcpServers": {    "yellowpages": {      "url": "https://mcp.hasdata.com/mcp?apis=yellowpages",      "headers": { "x-api-key": "HASDATA_API_KEY" }    }  }}
Windsurf

~/.codeium/windsurf/mcp_config.json. Windsurf calls the field serverUrl, not url:

json
{  "mcpServers": {    "yellowpages": {      "serverUrl": "https://mcp.hasdata.com/mcp?apis=yellowpages",      "headers": { "x-api-key": "HASDATA_API_KEY" }    }  }}
VS Code

.vscode/mcp.json in the workspace:

json
{  "servers": {    "yellowpages": {      "type": "http",      "url": "https://mcp.hasdata.com/mcp?apis=yellowpages",      "headers": { "x-api-key": "HASDATA_API_KEY" }    }  }}

Example prompts

Each of these lands on one tool, or on two in sequence when the second needs the URL the first returns.

  • Find plumbers in Austin, TX and rank them by rating against review count.
  • List every HVAC contractor in this zipcode with a phone number and hours.
  • Which of these businesses have been trading for more than 20 years?
  • Read this Yellow Pages listing and tell me which brands they service.
  • Pull page 2 and 3 of roofers in Austin and merge them into one list.
  • Sort dentists in this city by average rating rather than by relevance.

A prompt that names a niche and a city goes to the search tool. Reading services, brands and payment methods takes a second call per business, so a prospect list wants the search tool and an enrichment pass wants the place tool.

Tools

ToolWhat it returns
hasdata_yellowpages_place_getPlaceDetailsScrapes a single YellowPages business listing URL and returns business name, full address, phone, website, categories, years in business, hours of operation, ratings,…. 10 credits a call
hasdata_yellowpages_search_getSearchResultsEach business with name, listing URL, phone, address, categories, rating, review count, and years in business. 10 credits a call

Two tools, 10 credits per successful call.

Get Yellow Pages search results

hasdata_yellowpages_search_getSearchResults

A page of businesses for a keyword in a place, 30 to a page.

ParameterTypeRequiredNotes
keywordstringyesWhat to search for, such as plumber
locationstringyesWhere to search, such as Austin, TX
sortstringdefault, distance, averageRating or name
domainstringwww.yellowpages.com or www.yellowpages.ca
pagenumberResult page, starting at 1

Returns searchInformation with the echoed query and totalResults, an organicResults array, and pagination with currentPage, totalPages, perPage, nextPageUrl and otherPageUrls.

Almost every field on a result is optional, because Yellow Pages shows what each business paid for or filled in. Across the 30 results in the sample, title, phone, url, categories, country and position arrived on all of them, address on 22, rating and reviews on 11, and contactUs on 5. Read defensively rather than assuming a shape.

json
{  "position": 2,  "title": "Clarke Kent Plumbing",  "url": "https://www.yellowpages.com/austin-tx/mip/clarke-kent-plumbing-10674347?lid=1002194068759",  "phone": "(512) 766-0970",  "address": "1408 W Ben White Blvd",  "city": "Austin",  "region": "TX",  "zipcode": "78704",  "country": "US",  "website": "http://www.clarkekentplumbing.com",  "directions": "https://www.yellowpages.com/listings/1002194068759/directions",  "categories": ["Plumbers", "Plumbing-Drain & Sewer Cleaning"],  "rating": 2.87,  "reviews": 15,  "workingHours": ["Mo-Fr 09:00-17:00"],  "openState": "open now",  "badges": ["40 Years in Business", "1 Year with Yellow Pages"]}

Get Yellow Pages place details

hasdata_yellowpages_place_getPlaceDetails

One listing in full, by its Yellow Pages URL.

ParameterTypeRequiredNotes
urlstringyesThe listing URL, as the search tool returns it

Returns four blocks rather than one flat object.

overview repeats the name, location, phone, hours, badges and website, and adds paymentAccepted and a breadcrumbs array showing where the listing sits in the Yellow Pages taxonomy. ratings holds the star rating. details holds the long-form copy the business wrote. images is an array of photo URLs.

The details block is where the enrichment value sits, and it arrives as comma-joined text rather than as arrays. generalInfo is the business description, servicesProducts the service list, brands the brands they carry, paymentMethod the payment types and categories the full category list as one string.

json
{  "overview": {    "title": "ARS Rescue Rooter",    "phone": "(833) 947-9225",    "city": "Austin",    "region": "TX",    "zipcode": "78754",    "workingHours": ["Mo-Su"],    "openState": "Open 24 hours",    "paymentAccepted": "visa, amex, master card",    "badges": ["1 Year with Yellow Pages"],    "breadcrumbs": ["TX", "Austin", "Building Contractors", "Plumbers"]  },  "ratings": { "rating": 3.5 },  "details": {    "generalInfo": "ARS/Rescue Rooter has a proven track record of providing reliable, long-lasting repair services...",    "servicesProducts": "Air Conditioner Repair and Replacement, Air Duct Repair and Replacement, Air Filter Installation...",    "brands": "Goodman, Mitsubishi, Bosch, Diakin, Bradford White, April Aire Indoor Air Quality",    "paymentMethod": "visa, amex, master card"  },  "images": ["https://i4.ypcdn.com/blob/ce73451958465ab47dd7be41922973a98bc847af_640.jpg"]}

Prompts and resources

The server exposes 2 resources, one per parameter whose accepted values are a fixed list. Reading one is cheaper than learning the vocabulary from a rejected call, and it costs no credits. Each URI is hasdata://yellowpages/<parameter>.

ParameterValuesWhat it selects
sort4The sorting option for the search results.
domain2YellowPages domain to use. Default is www.yellowpages.com.

The list is served without an API key, so a client can read it before a user has signed up.

Errors and failure paths

Plan for these rather than assuming a happy path.

For a review count, read the search result rather than the place detail. On the search tool, rating and reviews are what they look like, such as 2.87 and 15. On the place tool, ratings.reviews comes back equal to ratings.rating on every listing we checked, so it carries no count. Take the number from the search result and enrich from there.

ratings can be absent from a place response entirely. One of the four listings we pulled had no block at all rather than an empty one.

details fields are comma-joined strings, and categories changes type between the tools. In a search result categories is an array. In details it is one string. Split on the comma if you need a list, and expect the odd category name to contain one.

website sometimes points back at Yellow Pages. Several listings carry a yellowpages.com tracking URL in the field where you would expect the business's own site. Check the host before you follow it or store it.

Years in business is a badge, not a field. badges mixes two different things: how long the business has traded, as "40 Years in Business", and how long it has paid Yellow Pages, as "11 Years with Yellow Pages". Read the wording rather than the first number.

A street address is not guaranteed. address held the street line on 22 of 30 results, and city, region and zipcode arrive as separate fields alongside it. Build the address from the parts you have.

openState is the state at the moment of the call. It says closed or Open 24 hours for the time the request ran, so it is a snapshot rather than a property of the business. workingHours is the durable field.

Paging is by URL, and a query can run long. pagination.totalPages reached 17 for one city and one keyword, at 30 results a page. Cost scales with pages, so narrow the keyword before you walk them all.

Results that carry data also carry a requestMetadata.id worth quoting in support.

Pricing, free tier and limits

Each Yellow Pages tool costs 10 credits per successful call. Response size does not change the price, so a 30-business page costs the same as one listing detail.

The free tier is 1,000 credits every month with no card, which is 100 Yellow Pages calls at the base rate. It renews with the billing cycle, so a low-volume agent runs on the free tier indefinitely.

Paid plans start at $59 a month for 200,000 credits, which is 20,000 calls. The unit price falls with volume, from $2.95 per 1,000 calls on the entry plan to $1.19 on Basic and $0.83 across the Growth tiers. Current figures live on the pricing page.

Your plan also sets concurrency. The free tier allows 5 requests at a time, Startup 5, Basic 15, and the Growth tiers run from 50 to 500. Retry on the 429 with a backoff in anything unattended, because an agent that enriches a page of businesses will reach the ceiling before you do.

A request that comes back non-200 is not billed. A successful call that finds nothing is still a call.

Tool selection

Start from what the prompt gives you. A niche and a city go to the search tool, and a Yellow Pages URL goes straight to the place tool.

Then weigh the enrichment. The search result already carries name, phone, address, categories, hours, badges and, where Yellow Pages shows them, the rating and review count. That covers a prospect list, a coverage count or a rating comparison in one call. The place tool adds the description, the service list, the brands and the photos, and it costs one call per business, so 30 businesses enriched cost 300 credits against the 10 the page cost.

Sort server-side when the question is about order. sort: averageRating is one parameter, where pulling several pages to sort locally is several calls.

How it compares

Yellow Pages has no public API, so the realistic alternatives are the two big local-data APIs.

Google Places APIYelp Fusion APIThis server
EligibilityA billed Google Cloud projectAn approved developer appAn API key
Services and brandsNot returnedNot returnedThe details block
Payment methodsNot returnedPartly, as attributesAs written
Years in businessNot returnedNot returnedIn badges
PhotosVia a separate billed callIncludedAn array of URLs
CanadaCoveredCoveredyellowpages.ca
CoverageBroadestConsumer-heavyTrades and services

The row that decides it is what a listing says about itself. Google and Yelp return a structured record, and Yellow Pages returns the copy a contractor wrote about their own services, brands and payment terms, which is the part a trades prospect list is built on. For coverage, hours accuracy and consumer categories, Google Places is the stronger source.

FAQ

Is there an official Yellow Pages MCP server?

Yellow Pages does not publish one, and it does not publish a public API either. This one is maintained by HasData and reads public Yellow Pages listings.

What is a Yellow Pages MCP server?

An MCP server exposes tools an AI client can call. This one turns Yellow Pages searches and listings into JSON an agent can reason over, without a browser or a scraping library in your stack.

Do I need a Yellow Pages account?

No. The only credential is your HasData key.

Which countries are covered?

The US on www.yellowpages.com and Canada on www.yellowpages.ca. Pass domain to switch.

Why is a field missing from some results?

Because Yellow Pages shows what each business filled in or paid for. A rating arrived on 11 of 30 results in our sample and a street address on 22. Treat everything except the name, phone, URL and categories as optional.

How do I get a review count?

From the search result, where reviews is a count. The place tool's ratings.reviews mirrors the rating rather than counting reviews, so it is not the field for that.

Can I use this together with other HasData APIs?

Yes. One key covers everything, and one endpoint serves them all through the apis parameter. Point a client at ?apis=yellowpages,google_maps to get both tool sets in one connection, or at mcp.hasdata.com/mcp for the full catalogue.

Is HasData affiliated with Yellow Pages?

No. HasData is an independent service and is not affiliated with, endorsed by, or sponsored by Thryv or the Yellow Pages brand. Yellow Pages is a trademark of its respective owner. The tools work with publicly available data only, and you are responsible for using the results in line with the site's terms and the law that applies to you.

Compliance and personal data

These listings are business records, and the obvious use is a lead list. That is where the care belongs, because calling and texting the phone numbers you collect is regulated separately from collecting them. In the US the TCPA governs calls and texts to those numbers, including to businesses in several respects, and the FTC's telemarketing rules apply on top. A sole trader's listing can also carry their own name and mobile number, which makes it personal data as well as a business record. Collecting the list is the easy part, so check what you are allowed to do with it before you build the outreach.

HasData links

Other HasData MCP servers: Google Maps, Yelp, Google Search, Google Trends, Google Flights, DuckDuckGo, YouTube, TikTok, Instagram, Amazon, Walmart, Shopify, Zillow, Redfin, Airbnb, Booking.com, Indeed, Glassdoor.

Development

The launcher is a thin stdio bridge to the remote server, so there is nothing to build.

bash
npm installHASDATA_API_KEY=your_key_here npm test

The tests in test/ assert the tool contract, the part that can break without a commit here. They check that ?apis=yellowpages returns the expected tool count, that no name changed, that every tool still declares its required parameters and carries a description, that sort still offers the four orders, and that the key in use is actually accepted. That last check calls a tool for real and costs 10 credits, which is the price of a canary that can fail for the right reason.

One test asserts that a live search still carries a real review count on the results that have one. The README sends readers to the search tool for that number precisely because the place tool does not give it, and the advice only holds while the field does.

The contract suite also runs weekly on a schedule, because the upstream tool list can change without anyone touching this repository.

Contributing

A tool table, a response sample or a documented behaviour that does not match reality is worth an issue. There is a template for exactly that. Pull requests are welcome for the same, and for anything in the launcher.

License

MIT, see LICENSE.

來源:README.md,提交 796ec15

工具

0
SourceWeft 尚未讀取此伺服器的工具。

版本歷史

3
  1. v1.0.2最新Sep 24, 2026
  2. v1.0.1Sep 22, 2026
  3. v1.0.0Sep 16, 2026

評分

已滿足適用檢查項的 85%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Hasdata 整合