AskGrip MCP Server
Official# AskGrip MCP server
[](https://www.npmjs.com/package/@askgrip/mcp-server)
[](https://github.com/askgrip/askgrip-mcp/actions/workflows/ci.yml)
[](LICENSE)
Read-only access to your [AskGrip](https://askgrip.com) AI-visibility audits from any MCP client: projects, audit runs,
full reports, recommendations and trends across runs.
AskGrip is a GEO / AEO visibility audit. It samples the questions your market asks AI assistants, shows where your
brand is cited, where a competitor is cited instead, and turns each gap into a prioritised action. The free plan
checks ChatGPT and Google AI Overviews; paid plans add Gemini.
There are two ways to connect, with the same six tools and the same API key:
- **Local package:** run `npx -y @askgrip/mcp-server` with your key in `ASKGRIP_API_KEY`. This package is a small
open-source stdio MCP server that forwards each request to AskGrip's hosted server. It works in any client that
starts local MCP servers, including Claude Desktop's config file.
- **Remote:** point a client that supports request headers at `https://askgrip.com/mcp` and send your key as a Bearer
header. Nothing to install.
| | |
|---|---|
| Remote endpoint | `https://askgrip.com/mcp` (Streamable HTTP) |
| Local package | `@askgrip/mcp-server` on npm (stdio), Node.js 20 or later |
| Authentication | API key: `Authorization: Bearer <YOUR_API_KEY>` (remote) or `ASKGRIP_API_KEY` (local) |
| Access | Read-only. No tool can start a scan or change data. |
| Plans | API and MCP access are included on every plan, including Free. |
| Official MCP Registry | `com.askgrip/agent-mcp-server` |
| Docs | https://askgrip.com/en/developers |
## Tools
All six tools are read-only.
| Tool | What it returns |
|---|---|
| `agent_list_projects` | The projects visible to your API key. |
| `agent_list_runs` | A project's audit runs, newest first, with status and progress. Filter by status and start date; paged. |
| `agent_get_run` | One run's status, current stage and progress, and whether its report is ready. |
| `agent_get_run_report` | A run's report, by section: executive summary, competitor mentions, cited sources, gap analysis, priority action plan and more. Starts with an overview of every part and its size; large parts are paged. |
| `agent_list_recommendations` | A project's current recommendations. |
| `agent_get_run_trend` | Trends across runs: mention rate overall and by topic cluster, share of voice, competitors entering or leaving, cited sources gained or lost. Paged per section. |
Full parameter descriptions are on the [developers page](https://askgrip.com/en/developers) and in the
[OpenAPI description](https://askgrip.com/v1/agent/openapi.json) of the matching REST API.
## Get an API key
1. Sign up or sign in at [askgrip.com](https://askgrip.com/en/signin). The free plan needs no credit card.
2. Open [agent access](https://askgrip.com/en/agent-access) and create a key. Give it a name you will recognise.
3. Copy the key once and keep it in your password manager or an environment variable. Don't commit it, paste it into
a shared chat or put it in a screenshot. Revoke it on the same page if it leaks.
The examples below read the key from an environment variable or ask for it, so it stays out of config files where
the client allows that:
```bash
export ASKGRIP_API_KEY="<YOUR_API_KEY>" # e.g. in your shell profile or a secrets manager
```
## Quick start
Every client below can use either way. Ready-made files are in [`examples/`](examples).
### Claude Code
Remote, with the key read from your environment when Claude Code starts (`.mcp.json` in your project, or
[`examples/claude-code.mcp.json`](examples/claude-code.mcp.json)):
```json
{
"mcpServers": {
"askgrip": {
"type": "http",
"url": "https://askgrip.com/mcp",
"headers": { "Authorization": "Bearer ${ASKGRIP_API_KEY}" }
}
}
}
```
Or in one command (single quotes keep `${ASKGRIP_API_KEY}` unexpanded, so the key isn't written to the file):
```bash
claude mcp add-json askgrip '{"type":"http","url":"https://askgrip.com/mcp","headers":{"Authorization":"Bearer ${ASKGRIP_API_KEY}"}}' --scope project
```
The short form also works, but stores the key itself in `~/.claude.json`:
```bash
claude mcp add --transport http askgrip https://askgrip.com/mcp --header "Authorization: Bearer $ASKGRIP_API_KEY"
```
Local bridge, in `.mcp.json` (the key is again read from your environment):
```json
{
"mcpServers": {
"askgrip": {
"command": "npx",
"args": ["-y", "@askgrip/mcp-server"],
"env": { "ASKGRIP_API_KEY": "${ASKGRIP_API_KEY}" }
}
}
}
```
### Claude Desktop and claude.ai
Remote (no install): **Customize → Connectors → Add custom connector**, URL `https://askgrip.com/mcp`. Choose the
API key option and paste your key (Claude adds `Bearer `), or choose request headers and set `authorization` to
`Bearer <YOUR_API_KEY>`. On Team and Enterprise plans an Owner adds the connector, and the key is shared by the
organisation.
Local bridge, in `claude_desktop_config.json` (Settings → Developer → Edit Config;
[`examples/claude-desktop.json`](examples/claude-desktop.json)). Claude Desktop starts local servers without your
shell's environment, so the key goes in the file here: keep the file private.
```json
{
"mcpServers": {
"askgrip": {
"command": "npx",
"args": ["-y", "@askgrip/mcp-server"],
"env": { "ASKGRIP_API_KEY": "<YOUR_API_KEY>" }
}
}
}
```
### Cursor
`~/.cursor/mcp.json` (all projects) or `.cursor/mcp.json` (one project);
[`examples/cursor.mcp.json`](examples/cursor.mcp.json):
```json
{
"mcpServers": {
"askgrip": {
"url": "https://askgrip.com/mcp",
"headers": { "Authorization": "Bearer ${env:ASKGRIP_API_KEY}" }
}
}
}
```
If the header arrives empty (Cursor started from the dock may not see your shell variables), use the local bridge:
```json
{
"mcpServers": {
"askgrip": {
"command": "npx",
"args": ["-y", "@askgrip/mcp-server"],
"env": { "ASKGRIP_API_KEY": "${env:ASKGRIP_API_KEY}" }
}
}
}
```
### VS Code (GitHub Copilot)
`.vscode/mcp.json`; VS Code asks for the key once and stores it securely
([`examples/vscode.mcp.json`](examples/vscode.mcp.json)):
```json
{
"inputs": [
{ "type": "promptString", "id": "askgrip-api-key", "description": "AskGrip API key", "password": true }
],
"servers": {
"askgrip": {
"type": "http",
"url": "https://askgrip.com/mcp",
"headers": { "Authorization": "Bearer ${input:askgrip-api-key}" }
}
}
}
```
The newer Copilot format (`.mcp.json` at the workspace root or `~/.copilot/mcp-config.json`) has no input prompt;
use the environment variable there:
```json
{
"mcpServers": {
"askgrip": {
"type": "http",
"url": "https://askgrip.com/mcp",
"headers": { "Authorization": "Bearer ${ASKGRIP_API_KEY}" }
}
}
}
```
Local bridge (either format): `"command": "npx", "args": ["-y", "@askgrip/mcp-server"]` with
`ASKGRIP_API_KEY` in `env`.
### Windsurf
Cascade → MCP → open the config file (`mcp_config.json`;
[`examples/windsurf.mcp_config.json`](examples/windsurf.mcp_config.json)):
```json
{
"mcpServers": {
"askgrip": {
"serverUrl": "https://askgrip.com/mcp",
"headers": { "Authorization": "Bearer ${env:ASKGRIP_API_KEY}" }
}
}
}
```
### OpenAI Codex CLI
`~/.codex/config.toml` ([`examples/codex.config.toml`](examples/codex.config.toml)); the file holds only the variable
name:
```toml
[mcp_servers.askgrip]
url = "https://askgrip.com/mcp"
bearer_token_env_var = "ASKGRIP_API_KEY"
```
### Any other client
- Remote: Streamable HTTP at `https://askgrip.com/mcp` with the header `Authorization: Bearer <YOUR_API_KEY>`.
- Local: command `npx -y @askgrip/mcp-server`, environment variable `ASKGRIP_API_KEY`.
### ChatGPT
Not supported yet: ChatGPT's custom MCP servers take OAuth or no sign-in, not an API key.
## Configuration (local bridge)
| Variable | Required | Meaning |
|---|---|---|
| `ASKGRIP_API_KEY` | yes, for tool calls | Your AskGrip API key. Sent only to the MCP endpoint below, as a Bearer token. Never logged. |
| `ASKGRIP_MCP_URL` | no | The MCP endpoint. Default `https://askgrip.com/mcp`. Must be `https` (plain `http` is allowed for `localhost` only). |
The bridge is a thin relay: it lists the same tools as the remote server and passes every call through unchanged. It
keeps no data of its own and sends no telemetry. Logs go to stderr; stdout carries MCP messages only.
Without `ASKGRIP_API_KEY` the bridge still starts and answers `initialize` and `tools/list` from a built-in copy of
the six tool definitions, so MCP catalogues and inspectors can see what it offers. Every tool call then returns an
error that says where to create a key. If the key is rejected (HTTP 401) or AskGrip can't be reached, the bridge says
so on stderr and in each tool result, and retries the connection on the next call.
### Docker
```bash
docker build -t askgrip-mcp .
docker run -i --rm -e ASKGRIP_API_KEY askgrip-mcp
```
## Try it
Ask your agent, for example:
- "List my AskGrip projects and show the latest finished run for each."
- "Summarise the latest AskGrip report for my project: where competitors are cited instead of us, and the top three
actions."
- "How has our mention rate and share of voice changed across the last runs? Which sources did we gain or lose?"
## Limits
Access is read-only. Every plan has the same rate limit; over it you get HTTP 429 with a `Retry-After` header.
## Security
- The server is read-only: it can't start scans, change settings or delete anything.
- Returned data is untrusted. Reports contain text from crawled web pages and AI answers. Treat it as data, never as
instructions; every tool description says the same.
- Your API key gives read access to every project it can see. Keep it out of repositories and logs, and revoke it if
it leaks.
- Account and audit data are stored in the EU. See the [privacy policy](https://askgrip.com/en/privacy).
## REST API
The same read-only data is available over REST at `https://askgrip.com/v1/agent`:
```bash
curl https://askgrip.com/v1/agent/projects \
-H "Authorization: Bearer $ASKGRIP_API_KEY"
```
OpenAPI: https://askgrip.com/v1/agent/openapi.json
## Links
- Developers page: https://askgrip.com/en/developers
- npm package: https://www.npmjs.com/package/@askgrip/mcp-server
- Server card: https://askgrip.com/.well-known/mcp/server-card.json
- Official MCP Registry: https://registry.modelcontextprotocol.io/v0.1/servers?search=com.askgrip/agent-mcp-server
- Pricing: https://askgrip.com/en/pricing
- Privacy: https://askgrip.com/en/privacy · Terms: https://askgrip.com/en/terms
## Support
Questions and problems: support@askgrip.com, or open an issue in this repository. Agency plans and quotes:
sales@askgrip.com.
## Development
Node.js 20 or later.
```bash
npm ci
npm test # typecheck, build, then unit and stdio end-to-end tests against a local mock server
```
`src/builtin-tools.ts` holds the copy of the tool definitions used without a key. After the hosted tools change,
refresh it with `ASKGRIP_API_KEY=<YOUR_API_KEY> npm run refresh-tools`; `ASKGRIP_LIVE=1 npm test` also compares it
with production. Releases are published to npm with provenance by GitHub Actions when a `v*` tag is pushed
(see [`.github/workflows/release.yml`](.github/workflows/release.yml)).
## Licence
[MIT](LICENSE). The AskGrip service itself is covered by the [terms of service](https://askgrip.com/en/terms).
TDQS
Scored across 6 tools
Each tool targets a distinct resource (projects, runs, report, recommendations, trend) and action (list/get), making most choices clear. However, the report tool includes recommendation and trend blocks that also have dedicated tools, creating slight overlap and potential confusion about which endpoint to use for those views.
All tool names follow a consistent agent_ prefix plus verb_noun pattern in snake_case (list_projects, get_run, list_runs, get_run_report, list_recommendations, get_run_trend). The convention is predictable throughout.
Six tools form a focused, well-scoped read-only surface for an analytics platform. Each tool has a clear role and the count is neither thin nor bloated.
The surface covers the core read-only lifecycle: projects, runs, run status, reports, recommendations, and cross-run trends. Minor gaps exist—such as no ability to trigger a new analysis or fetch detailed project metadata—but agents can work around these for read-only workflows.