Repository avatar
AI Tools
v1.1.0
active

agent-mcp-server

com.askgrip/agent-mcp-server

AskGrip audits how AI assistants mention your brand and turns gaps into prioritised actions.

Documentation

AskGrip MCP server

npm CI License: MIT

Read-only access to your AskGrip 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 endpointhttps://askgrip.com/mcp (Streamable HTTP)
Local package@askgrip/mcp-server on npm (stdio), Node.js 20 or later
AuthenticationAPI key: Authorization: Bearer <YOUR_API_KEY> (remote) or ASKGRIP_API_KEY (local)
AccessRead-only. No tool can start a scan or change data.
PlansAPI and MCP access are included on every plan, including Free.
Official MCP Registrycom.askgrip/agent-mcp-server
Docshttps://askgrip.com/en/developers

Tools

All six tools are read-only.

ToolWhat it returns
agent_list_projectsThe projects visible to your API key.
agent_list_runsA project's audit runs, newest first, with status and progress. Filter by status and start date; paged.
agent_get_runOne run's status, current stage and progress, and whether its report is ready.
agent_get_run_reportA 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_recommendationsA project's current recommendations.
agent_get_run_trendTrends 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 and in the OpenAPI description of the matching REST API.

Get an API key

  1. Sign up or sign in at askgrip.com. The free plan needs no credit card.
  2. Open 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:

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/.

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):

{
  "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):

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:

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):

{
  "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). Claude Desktop starts local servers without your shell's environment, so the key goes in the file here: keep the file private.

{
  "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:

{
  "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:

{
  "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):

{
  "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:

{
  "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):

{
  "mcpServers": {
    "askgrip": {
      "serverUrl": "https://askgrip.com/mcp",
      "headers": { "Authorization": "Bearer ${env:ASKGRIP_API_KEY}" }
    }
  }
}

OpenAI Codex CLI

~/.codex/config.toml (examples/codex.config.toml); the file holds only the variable name:

[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)

VariableRequiredMeaning
ASKGRIP_API_KEYyes, for tool callsYour AskGrip API key. Sent only to the MCP endpoint below, as a Bearer token. Never logged.
ASKGRIP_MCP_URLnoThe 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

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.

REST API

The same read-only data is available over REST at https://askgrip.com/v1/agent:

curl https://askgrip.com/v1/agent/projects \
  -H "Authorization: Bearer $ASKGRIP_API_KEY"

OpenAPI: https://askgrip.com/v1/agent/openapi.json

Links

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.

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).

Licence

MIT. The AskGrip service itself is covered by the terms of service.

NPM
@askgrip/mcp-server
Install Command
npm install @askgrip/mcp-server
Runtime: npx

Remote