@hasdata/google-images-mcp 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -11
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
<!-- mcp-name: com.hasdata/google-images -->
|
|
4
4
|
|
|
5
|
-
A hosted
|
|
5
|
+
A hosted [Google Images MCP server](https://hasdata.com/mcp/google-images?utm_source=github&utm_medium=syndication&utm_campaign=google-images-mcp&utm_content=readme-intro) that gives Claude, Cursor, Windsurf and any other MCP client one read-only Google Images tool. Run an image search with size, colour and type filters and get 100 results a call, each with the page it came from and the full-resolution file URL, as structured JSON, with nothing to host.
|
|
6
6
|
|
|
7
7
|
It reads the Google Images results page a signed-out visitor sees.
|
|
8
8
|
|
|
9
|
-
**1,000 free credits every month, no card required**, which is
|
|
9
|
+
**1,000 free credits every month, no card required**, which is 100 Google Images calls at the 10-credit rate.
|
|
10
10
|
|
|
11
11
|
```
|
|
12
12
|
https://mcp.hasdata.com/mcp?apis=google_images
|
|
@@ -16,6 +16,7 @@ https://mcp.hasdata.com/mcp?apis=google_images
|
|
|
16
16
|
[](https://github.com/HasData/google-images-mcp/actions/workflows/contract.yml)
|
|
17
17
|
[](https://mcp.hasdata.com/mcp?apis=google_images)
|
|
18
18
|
[](#tools)
|
|
19
|
+
- [Prompts and resources](#prompts-and-resources)
|
|
19
20
|
[](https://www.npmjs.com/package/@hasdata/google-images-mcp)
|
|
20
21
|
[](https://pypi.org/project/hasdata-google-images-mcp/)
|
|
21
22
|
[](LICENSE)
|
|
@@ -37,7 +38,7 @@ https://mcp.hasdata.com/mcp?apis=google_images
|
|
|
37
38
|
|
|
38
39
|
## What you need
|
|
39
40
|
|
|
40
|
-
An MCP client and a HasData API key from the [dashboard](https://app.hasdata.com/sign-up?utm_source=github&utm_medium=syndication&utm_campaign=google-images-mcp), free to create with no card, and the free tier covers about
|
|
41
|
+
An MCP client and a HasData API key from the [dashboard](https://app.hasdata.com/sign-up?utm_source=github&utm_medium=syndication&utm_campaign=google-images-mcp), 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/google-images-mcp` on npm and `hasdata-google-images-mcp` on PyPI, shown below.
|
|
41
42
|
|
|
42
43
|
## Quick start
|
|
43
44
|
|
|
@@ -166,9 +167,9 @@ One call answers each of these, because a page carries 100 results. Paging is on
|
|
|
166
167
|
|
|
167
168
|
| Tool | What it returns |
|
|
168
169
|
| --- | --- |
|
|
169
|
-
| `hasdata_google_images_images_getImageSearchResults` | Each image with title, source page URL, direct image URL, thumbnail, dimensions, source domain, and position.
|
|
170
|
+
| `hasdata_google_images_images_getImageSearchResults` | Each image with title, source page URL, direct image URL, thumbnail, dimensions, source domain, and position. 10 credits a call |
|
|
170
171
|
|
|
171
|
-
One tool,
|
|
172
|
+
One tool, 10 credits per successful call.
|
|
172
173
|
|
|
173
174
|
### Get image search results
|
|
174
175
|
|
|
@@ -216,6 +217,20 @@ The `tbs` parameter is Google's own filter string, and several filters combine w
|
|
|
216
217
|
| A specific colour | `ic:specific,isc:red`, and the other colour names |
|
|
217
218
|
| Type | `itp:photo`, `itp:face`, `itp:clipart`, `itp:lineart`, `itp:animated` |
|
|
218
219
|
|
|
220
|
+
## Prompts and resources
|
|
221
|
+
|
|
222
|
+
The server exposes 5 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://google_images/<parameter>`.
|
|
223
|
+
|
|
224
|
+
| Parameter | Values | What it selects |
|
|
225
|
+
| --- | ---: | --- |
|
|
226
|
+
| `domain` | 195 | Google domain to use. Default is google.com. |
|
|
227
|
+
| `gl` | 245 | The two-letter country code for the country you want to limit the search to. |
|
|
228
|
+
| `hl` | 159 | The two-letter language code for the language you want to use for the search. |
|
|
229
|
+
| `safe` | 2 | Adult Content Filtering option. |
|
|
230
|
+
| `deviceType` | 3 | Specify the device type for the search. |
|
|
231
|
+
|
|
232
|
+
The list is served without an API key, so a client can read it before a user has signed up.
|
|
233
|
+
|
|
219
234
|
## Errors and failure paths
|
|
220
235
|
|
|
221
236
|
Plan for these rather than assuming a happy path.
|
|
@@ -238,13 +253,13 @@ Results that carry data also carry a `requestMetadata.id` worth quoting in suppo
|
|
|
238
253
|
|
|
239
254
|
## Pricing, free tier and limits
|
|
240
255
|
|
|
241
|
-
The Google Images tool costs **
|
|
256
|
+
The Google Images tool costs **10 credits per successful call**. Response size does not change the price, and a call returns 100 results, which makes this one of the cheaper tools in the catalogue per row returned.
|
|
242
257
|
|
|
243
|
-
The free tier is **1,000 credits every month with no card**, which is
|
|
258
|
+
The free tier is **1,000 credits every month with no card**, which is 100 Google Images calls at the base rate. It renews with the billing cycle, so a low-volume agent runs on the free tier indefinitely.
|
|
244
259
|
|
|
245
|
-
Paid plans start at **$59 a month** for 200,000 credits, which is
|
|
260
|
+
Paid plans start at **$59 a month** for 200,000 credits, which is 20,000 calls. The unit price falls with volume, from **$1.48 per 1,000 calls** on the entry plan to **$0.60** on Basic and **$0.41** across the Growth tiers. Current figures live on the [pricing page](https://hasdata.com/prices?utm_source=github&utm_medium=syndication&utm_campaign=google-images-mcp).
|
|
246
261
|
|
|
247
|
-
Your plan also sets concurrency. The free tier allows
|
|
262
|
+
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 sweeps a keyword list will reach the ceiling before you do.
|
|
248
263
|
|
|
249
264
|
A request that comes back non-200 is not billed. A successful call that finds nothing is still a call.
|
|
250
265
|
|
|
@@ -291,7 +306,7 @@ Through `tbs`. `isz:l` gets large images, `isz:lt,islt:2mp` gets anything above
|
|
|
291
306
|
|
|
292
307
|
### Can I use this together with other HasData APIs?
|
|
293
308
|
|
|
294
|
-
Yes. One key covers everything, and one endpoint serves them all through the `apis` parameter. Point a client at `?apis=google_images,google_serp` to get both tool sets in one connection, or at [`mcp.hasdata.com/
|
|
309
|
+
Yes. One key covers everything, and one endpoint serves them all through the `apis` parameter. Point a client at `?apis=google_images,google_serp` to get both tool sets in one connection, or at [`mcp.hasdata.com/mcp`](https://docs.hasdata.com/mcp-server?utm_source=github&utm_medium=syndication&utm_campaign=google-images-mcp) for the full catalogue.
|
|
295
310
|
|
|
296
311
|
### Is HasData affiliated with Google?
|
|
297
312
|
|
|
@@ -320,7 +335,7 @@ npm install
|
|
|
320
335
|
HASDATA_API_KEY=your_key_here npm test
|
|
321
336
|
```
|
|
322
337
|
|
|
323
|
-
The tests in `test/` assert the tool contract, the part that can break without a commit here. They check that `?apis=google_images` returns the one expected tool, that its name has not changed, that it still requires `q` and carries a description, that the filter and targeting parameters this README documents are still in the schema, and that the key in use is actually accepted. That last check calls the tool for real and costs
|
|
338
|
+
The tests in `test/` assert the tool contract, the part that can break without a commit here. They check that `?apis=google_images` returns the one expected tool, that its name has not changed, that it still requires `q` and carries a description, that the filter and targeting parameters this README documents are still in the schema, and that the key in use is actually accepted. That last check calls the tool for real and costs 10 credits, which is the price of a canary that can fail for the right reason.
|
|
324
339
|
|
|
325
340
|
One test asserts that a live search returns results carrying both `original` and its dimensions. Those three fields are what makes this tool worth calling over a plain SERP, and a parser change that dropped them would leave a green tools list behind it.
|
|
326
341
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hasdata/google-images-mcp",
|
|
3
3
|
"mcpName": "com.hasdata/google-images",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.4",
|
|
5
5
|
"description": "MCP server for Google Images through HasData's hosted API: image search with size, colour and type filters, returning 100 results a call with the source page and the full-resolution URL. 1,000 free credits every month.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"bin": {
|