AI Answer Check
by pipeworx-io
README.md
# @pipeworx/ai-answer-check
Ask Perplexity, Google Gemini or OpenAI a web-grounded question through each vendor's official API, with your own key, and get the answer text, the cited pages with titles, links in the text, and whether a brand or website appears.
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
- `perplexity_brand_check(user_prompt, brand?, website?, model?)` -- Perplexity Sonar answer, citations and brand/website flags.
- `gemini_answer_check(user_prompt, brand?, website?, model?)` -- Gemini with Google Search grounding: answer, grounded sources, the searches it ran, flags.
- `chatgpt_answer_check(user_prompt, brand?, website?, model?)` -- OpenAI model with web search: answer, cited pages with titles, the searches it ran, flags.
Each returns `answer`, `citations[{url,title}]`, `links_in_answer`, `search_queries`, `brand_mentioned`, `website_cited`, `model`, `usage`, `limitations` (fields the vendor did not give on that call) and a `caveat`.
## Auth
BYO only. Pass your own key for the vendor as `_apiKey`. Each tool sends it only to its own vendor; Pipeworx holds no key for any of the three and a call without one is refused ("requires an API key") before any request is made. Calls are billed to your vendor account.
This pack must never declare a platform key: the gateway would hand that single credential to every tool in the pack, that is to all three vendors. `src/index.test.ts` fails if the manifest row ever does.
## Data sources
- Perplexity, Sonar API.
- Google, Gemini API with Grounding with Google Search.
- OpenAI, Responses API with web search.
These are API answers, not the answers the consumer apps give: the apps use different system prompts, search policies and memory. `brand_mentioned` is a case-insensitive text match on the answer; `website_cited` is a host match (the domain or a subdomain) against the citations and links in the answer. Gemini cites through vendor redirect URLs and puts the site name in the title; Perplexity does not report the searches it ran. Test fixtures are synthetic (written from the vendors' documented response shapes); no vendor key was available for a live capture.
## Quick Start
Add to your MCP client (Claude Desktop, Cursor, Windsurf, etc.):
```json
{
"mcpServers": {
"ai-answer-check": {
"url": "https://gateway.pipeworx.io/ai-answer-check/mcp"
}
}
}
```
### What this endpoint actually serves
`tools/list` at `https://gateway.pipeworx.io/ai-answer-check/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/ai-answer-check/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/ai-answer-check/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/perplexity_brand_check`. Find one: `POST https://gateway.pipeworx.io/v1/tools/search_packs` with `{"query":"..."}`.
## Run it from npm
`@pipeworx/mcp-ai-answer-check` 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/ai-answer-check/mcp` endpoint shown above. It needs network access;
there is no offline mode.
```json
{
"mcpServers": {
"ai-answer-check": {
"command": "npx",
"args": ["-y", "@pipeworx/mcp-ai-answer-check"]
}
}
}
```
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 Ai Answer Check 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