@pipeworx/google-vision
by pipeworx-io
README.md
# @pipeworx/google-vision
Reverse image search through Google Cloud Vision Web Detection: the pages that contain an image, plus Google's matching and visually similar images and web entities.
Part of [Pipeworx](https://pipeworx.io) — an MCP gateway connecting AI agents to 2098+ live data sources. This is an independent, unofficial integration — not affiliated with, endorsed by, or published by the upstream provider.
## Tools
- `vision_reverse_image({ image_url | bytes, max_results?, _apiKey })` -- sends one image to Google Cloud Vision Web Detection and returns, in this order: `pagesWithMatchingImages` (each with `rank`, `url`, `pageTitle`, and that page's `fullMatchingImages` and `partialMatchingImages`), then `fullMatchingImages`, `partialMatchingImages`, `visuallySimilarImages`, `webEntities` and `bestGuessLabels`. Field names are Google's. Give exactly one of `image_url` (a public http(s) URL) or `bytes` (base64 image content). `max_results` caps the pages returned (default 10, maximum 50). A reply with no matching page is `found: false` with `reason: "no_matches"`, and `fields_unavailable` names every Google field that came back empty.
## Auth
Bring your own Google Cloud API key, passed as `_apiKey` (required). Callers supply the key; none is stored. The key's project needs the Cloud Vision API enabled and billing active; Google bills each image against that project. Create a key at https://console.cloud.google.com/apis/credentials. A call without a key refuses with `auth_required: google-vision requires an API key`; a key Google rejects, or a project without the API enabled, refuses with `auth_required` and Google's own reason. The key is sent to Google only, in a request header.
## Data sources
- Google Cloud, Vision API, Web Detection: pages and images Google has indexed that match or resemble the submitted image.
`pageTitle` is returned as Google supplies it and can contain HTML markup. Google must be able to fetch an `image_url`; use `bytes` for a private image.
## Quick Start
Add to your MCP client (Claude Desktop, Cursor, Windsurf, etc.):
```json
{
"mcpServers": {
"google-vision": {
"url": "https://gateway.pipeworx.io/google-vision/mcp"
}
}
}
```
### What this endpoint actually serves
`tools/list` at `https://gateway.pipeworx.io/google-vision/mcp` returns the tools in the table
above **plus five Pipeworx tools**: `ask_pipeworx`, `discover_tools`, `ask_pipeworx_grounded`, `company_register_search` and `company_facts`.
`ask_pipeworx` answers a question this pack does not cover by routing across the
whole catalog, without adding a second MCP server.
Add an option to the same URL:
- `https://gateway.pipeworx.io/google-vision/mcp?meta=1` lists this pack's tools plus **up to 48 shared Pipeworx tools** (48 when this README was
generated; a connection without an account lists fewer, and its own `tools/list` is the
exact answer on any given day).
- `https://gateway.pipeworx.io/google-vision/mcp?meta=0` lists this pack's tools alone.
Or connect to the full Pipeworx gateway to get every pack's tools listed
directly, instead of just this one's:
```json
{
"mcpServers": {
"pipeworx": {
"url": "https://gateway.pipeworx.io/mcp"
}
}
}
```
Both URLs reach the same gateway and the same 2098+ data sources. The
only difference is which pack's tools are listed **directly**; `ask_pipeworx`
reaches all of them from either one (it is not listed on a `?meta=0` connection).
## No MCP client? Call it over HTTP
This pack takes your own API key (`_apiKey`) — we don't front one for it, so there's no curl here that would run without it. Inspect any tool: `GET https://gateway.pipeworx.io/v1/tools/vision_reverse_image`. Find one: `POST https://gateway.pipeworx.io/v1/tools/search_packs` with `{"query":"..."}`.
## Run it from npm
`@pipeworx/mcp-google-vision` is a local stdio bridge to the Pipeworx gateway: your MCP client
starts it with `npx`, and it forwards every call to the same
`https://gateway.pipeworx.io/google-vision/mcp` endpoint shown above. It needs network access;
there is no offline mode.
```json
{
"mcpServers": {
"google-vision": {
"command": "npx",
"args": ["-y", "@pipeworx/mcp-google-vision"]
}
}
}
```
Without a key it calls anonymously, capped at 50 calls a day. A free account
raises that to 200 a day: get a key at https://pipeworx.io/signup and add
`"env": { "PIPEWORX_API_KEY": "<your key>" }` to the server entry.
The key is sent as a Bearer token, the same way a hosted connection sends it,
so calls are metered and billed exactly as they are there.
It lists **only** this pack's tools by default. Set `PIPEWORX_META_TOOLS=1` to
also list `ask_pipeworx` and the other gateway-wide tools.
Behind an HTTPS proxy: Node's built-in `fetch` does not read `HTTPS_PROXY` by
default. Newer Node releases honour it when `NODE_USE_ENV_PROXY=1` is set; check
your Node version's documentation.
## Using with ask_pipeworx
Instead of calling tools directly, you can ask questions in plain English —
this works on the pack endpoint above as well as on the full gateway:
```
ask_pipeworx({ question: "your question about Google Vision data" })
```
The gateway picks the right tool and fills the arguments automatically.
## More
- [Docs and guides](https://pipeworx.io/docs)
- [pipeworx.io](https://pipeworx.io)
## License
MIT
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues