About bingdata
bingdata is a local bridge to HasData’s hosted Bing MCP server, returning search results as JSON. It supports localized and filtered searches, including organic listings, related searches, ads, and the Copilot answer when returned upstream.
Key features
- 01Fetch Bing results as JSON
- 02Localize searches by place or coordinates
- 03Set market, language, and safe search
- 04Filter by date, device, and page offset
Use cases
- 01Retrieve Bing listings for a query
- 02Search with a geographic location and market
- 03Limit results by date or device
- 04Inspect related searches and returned ad or Copilot content
MCP support
Exposes the captured read-only Bing search tool to MCP clients and forwards calls to HasData’s hosted MCP server, passing results through unchanged.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
Tools
1Saved tool list · updated 2d ago
| Parameter | Type | Required | Description |
|---|---|---|---|
| q | string | Yes | Specify the search term for which you want to scrape the SERP. |
| cc | enum | No | The two-letter country code for the country to search from.ar | au | at | be | br | ca | cl | dk | fi | fr | de | hk | in | id | it | jp | kr | my | mx | nl | nz | no | cn | pl | pt | ph | ru | sa | za | es | se | ch | tw | tr | gb | us |
| lat | string | No | GPS latitude for the search origin. |
| lon | string | No | GPS longitude for the search origin. |
| mkt | enum | No | The two-letter country code for the country to search from.es-ar | en-au | de-at | nl-be | fr-be | pt-br | en-ca | fr-ca | es-cl | da-dk | fi-fi | fr-fr | de-de | zh-hk | en-in | en-id | it-it | ja-jp | ko-kr | en-my | es-mx | nl-nl | en-nz | no-no | zh-cn | pl-pl | en-ph | ru-ru | en-za | es-es | sv-se | fr-ch | de-ch | zh-tw | tr-tr | en-gb | en-us | es-us |
| first | number | No | This parameter specifies the number of search results to skip and is used for implementing pagination. For example, a value of 1 (default) indicates the first page of results, 11 refers to the second page, and 21 to the third page. |
| filters | string | No | Allows applying various filters to narrow search results, including date-based options: - `ex1:"ez1"` – past 24 hours - `ex1:"ez2"` – past week - `ex1:"ez3"` – past month For complex filters, run a Bing search and copy the filters parameter from the URL. |
| setLang | enum | No | The language of the user interface and preferred result language. Accepts a two-letter language code (e.g. `en`, `de`) or a locale/script variant (e.g. `en-gb`, `zh-hans`, `pt-br`).ar | bg | ca | zh-hans | zh-hant | hr | cs | da | nl | en | en-gb | et | fi | fr | de | he | hi | hu | it | jp | ko | lv | lt | ms | nb | pl | pt-br | pt-pt | ro | ru | sr | sk | sl | es | sv | th | tr | uk | vi |
| location | string | No | Defines the search’s origin location as free text (e.g. `Austin, Texas`). It is resolved to coordinates to localize the results. For realistic results, set location at the city level. If both `lat` and `lon` are provided, they take precedence and `location` is ignored. If omitted, the proxy’s location may be used. |
| deviceType | enum | No | Specify the device type for the search.desktop | mobile | tablet |
| safeSearch | enum | No | Adult Content Filtering option.off | moderate | strict |
Details
From the project READMEbingdata
bingdata is a small local bridge to the hosted HasData Bing MCP server, which returns Bing search results as JSON. Give it a query, and it fetches that query's Bing SERP: the organic results with their titles, links, snippets and positions, the related searches, and — as returned upstream — the ad block and the Copilot answer. Searches can be localised by free-text place or by latitude/longitude, and shaped by market, country, interface language, safesearch level, time filters, device type and page offset.
The bridge stores no results of its own. It serves the upstream server's tool list locally, exactly as captured from the live endpoint, and forwards each tool call upstream, returning the result untouched. The captured surface is a single read-only fetch: there is no write, messaging, or payment tool in it.
Tools
hasdata_bing_serp_getSearchResults— fetch one Bing SERP. Required:q(the search term). Optional:location(free-text origin, resolved to coordinates; ignored when both are given,latandlontake precedence),mkt(market),cc(country),setLang(interface language),safeSearch(off/moderate/strict),filters(Bing filter expressions, including the past-day/week/month date filters),deviceType(desktop/mobile/tablet), andfirst(result offset for paging: 1 is the first page, 11 the second, 21 the third). Returns organic results (title, url, snippet, displayed url, position) and related searches.
Configuration
HASDATA_BING_MCP_URL(optional) — override the upstream endpoint. Defaults tohttps://mcp.hasdata.com/mcp?apis=bing. (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 with the upstream: a JSON-RPC
initialize request (protocolVersion 2025-03-26,
clientInfo name bingdata), 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 bingdata error: (this rendering
is this rebuild's own labelled reconstruction).
CLI
The tool is also a subcommand taking one JSON argument string:
npx @reneturcios/bingdata hasdata_bing_serp_getSearchResults '{"q":"best coffee in san francisco","location":"San Francisco, California","mkt":"en-us","safeSearch":"moderate"}'
npx @reneturcios/bingdata --version
Exit codes: 0 on success, 1 on an isError
result, 2 on a usage error.
MCP server
npx -y @reneturcios/bingdata mcp
MCP client config:
{
"mcpServers": {
"bingdata": {
"command": "npx",
"args": ["-y", "@reneturcios/bingdata", "mcp"]
}
}
}
Docker
docker run -i ghcr.io/cloudcorprecords/bingdata
docker run --rm ghcr.io/cloudcorprecords/bingdata --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.