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 集成