# Connect GEO Sentry MCP in 3 minutes (Claude Desktop, Cursor, HTTP)


# Connect GEO Sentry MCP in 3 minutes

GEO Sentry MCP lets your own AI client call our capabilities directly. You need an API key, one config block, and a one-click connection test.

## What you can do with it

1. **Run a batch audit** of many URLs from your own script instead of clicking in the console.
2. **Ask your AI client about your scores** — for example "what is my AI visibility score and what changed this week?"
3. **Wire GEO data into your own system** — pull audit results as JSON into your CRM or dashboard.

## Step 1: Create an API key

1. Sign in and open `/console/mcp`.
2. Click **Create API key**.
3. You will see the full key once (`sk_live_…`) with a **Copy** button. Copy it now.

If you lose the key, create a new one and revoke the old one — revocation takes effect immediately.

## Step 2: Paste the config

### Claude Desktop

Add this to `claude_desktop_config.json` (macOS: `~/Library/Application Support/Claude/`, Windows: `%APPDATA%\Claude\`), then restart the app.

```json
{
  "mcpServers": {
    "geosentry": {
      "command": "npx",
      "args": ["-y", "@geosentry/mcp-server"],
      "env": {
        "GEOSENTRY_API_KEY": "YOUR_API_KEY",
        "GEOSENTRY_BASE_URL": "https://api.geoshenji.com"
      }
    }
  }
}
```

### Cursor

Add this to `.cursor/mcp.json`:

```json
{
  "mcpServers": {
    "geosentry": {
      "url": "https://api.geoshenji.com/mcp",
      "headers": { "Authorization": "Bearer YOUR_API_KEY" }
    }
  }
}
```

### Your own HTTP client

```bash
curl -s https://api.geoshenji.com/mcp \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "content-type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'
```

A `tools/list` response means authentication works.

## Step 3: Test the connection

Click **Test connection** on `/console/mcp`. We call one read-only tool with your key and show the result. A green check plus a sample response means you are connected.

## Usage and quota

**Quota resets monthly.** Check usage at [`/console/mcp`](/console/mcp) — calls used, remaining, last seven days. Hit the cap? Buy a credit pack, or [upgrade your plan](/pricing/). Until reset you get `429 QUOTA_EXCEEDED`; read access keeps working where allowed.

## Tool list, inputs and billing weight

Fourteen tools today. The **billing weight** column is what one call costs in credits — it reflects the real cost of the work (a single database read vs. a full crawl).

| Tool | What it does | Main inputs | Billing weight |
| --- | --- | --- | --- |
| `get_audit_report` | Read your audit summaries | `auditId` or `host` (default: latest, max 20) | 1 credit |
| `list_issues` | Read issues from one audit (max 200; truncation is stated) | `auditId` | 1 credit |
| `get_visibility_summary` | Read visibility metrics over 7/14/30 days | `windowDays` | 1 credit |
| `get_fix_hints` | Actionable fixes from an existing issue list (does not invent data) | `auditId`, `topN` (default 5, max 20) | 1 credit |
| `geo_audit_get` | Poll an audit run by id | `runId` | 1 credit |
| `qa_run_get` | Poll a server-side QA run by id | `runId` | 1 credit |
| `geo_audit_run` | Start a site audit (asynchronous; returns `runId`) | `url`, options | 50 credits |
| `perf_audit` | Performance check (server-side, asynchronous) | `url` | 50 credits |
| `nojs_audit` | No-JS visibility check (server-side) | `url` | 50 credits |
| `html_order` | Static HTML ordering check (server-side) | `url` | 50 credits |
| `site_audit` | Full three-in-one site check (server-side) | `url` | 50 credits |
| `geo_gsc_search_analytics` | Search analytics: queries, clicks, impressions, CTR, position (read-only GSC) | `siteUrl` and options | 10 credits |
| `geo_gsc_striking_distance` | Striking-distance keywords: queries ranking 11–20 (read-only GSC) | `siteUrl` and options | 10 credits |
| `geo_gsc_url_inspection` | URL inspection: index status and crawl issues (read-only GSC) | `url` | 10 credits |

**Typical latency.** Read tools answer in well under a second. Server-side tools return `PENDING` + `runId` immediately; the real work takes tens of seconds to a few minutes, so poll with `qa_run_get` / `geo_audit_get` instead of holding one request open.

**A call that is rejected costs nothing.** You are only charged for calls that actually run.

## Rate limits, credits and error codes

**Rate limit.** It follows your plan, not a fixed number: Free 30/min, Starter 120/min, Growth 300/min, Enterprise 1,200/min. When you exceed it you get `429 RATE_LIMITED` with a `Retry-After` header — back off for that many seconds rather than retrying in a tight loop. If your tenant has no plan configured yet, no per-minute cap is applied (only the monthly quota), so a misconfigured tenant can hammer the endpoint — set a plan before going live.

**Credits.** Every successful tool call is charged its billing weight shown above (1 or 50 credits). Two different failures produce two different messages, and both are actionable:

| HTTP | Code | What it means | What to do |
| --- | --- | --- | --- |
| 402 | `PAYMENT_REQUIRED` | The tool was not executed because there are no credits. The body states whether your plan grants MCP credits at all and how many were granted so far. | Top up a credit pack, upgrade, or ask an admin to grant credits. Automatic top-up is disabled until a payment channel exists. |
| 402 | `NO_CREDITS_GRANTED` | The credit ledger has never granted credits to this tenant — this is *not* "you used them all up". | Same as above; an operator has to grant credits or move you to a plan that includes them. |

**Node example (no packages needed).** Copy this, set `GEOSENTRY_API_KEY`, run it:

```js
const res = await fetch('https://api.geoshenji.com/mcp', {
  method: 'POST',
  headers: {
    'content-type': 'application/json',
    authorization: `Bearer ${process.env.GEOSENTRY_API_KEY}`,
  },
  body: JSON.stringify({
    jsonrpc: '2.0',
    id: 1,
    method: 'tools/call',
    params: { name: 'list_issues', arguments: { auditId: 'YOUR_AUDIT_ID' } },
  }),
});
console.log(res.status, await res.json());
```

If the response is `401`, the key is wrong or revoked. If it is `403 SCOPE_DENIED`, your plan does not include that tool. If it is `402`, read the code above — it tells you whether credits were never granted or just ran out.

## Troubleshooting

| Symptom | Code | Cause | Fix |
| --- | --- | --- | --- |
| 401 | `KEY_INVALID` | Key is wrong, revoked, or from another environment | Create a new key, update the config, restart the client |
| 401 | `KEY_MISSING` | Request has no `Authorization` header | Set `GEOSENTRY_API_KEY` in the config |
| 429 | `QUOTA_EXCEEDED` | Monthly quota used up | Buy credits or upgrade; wait for reset |
| 429 | `RATE_LIMITED` | Too many concurrent requests | Lower concurrency; retry after `Retry-After` |
| 403 | `SCOPE_DENIED` | Your plan does not include that tool | Use an allowed tool, or upgrade |
| Timeout | — | Network, proxy or firewall | Verify with the curl example above |

## Response format and `unmeasured`

Every tool returns JSON-RPC 2.0. A successful call puts a JSON **string** in `result.content[0].text`; a tool-level failure sets `result.isError: true` and keeps a readable `CODE: message` in the same text field.

Units are explicit: timestamps are ISO8601 UTC, scores are 0–100, ratios are 0–1, latency is milliseconds.

When there is not enough data we return `measured: false` (or `unmeasured` plus a `reason`) — **never 0**. `qa_run_get` returns `NOT_FOUND` for an unknown id instead of pretending a run completed.

## What we do not do

| Not supported | Why |
| --- | --- |
| Writing store data or editing pages | Writes stay human-confirmed in the console |
| Logged-in pages, GSC write operations | We do not hold your credentials |
| Bypassing robots.txt, penetration testing | Unlawful and unethical; we follow the public crawl policy |
| Collecting PII | Compliance red line; attribution stores hashed order ids only |
| Full JS-rendered equivalence in `nojs_audit` | By design — `perf_audit` executes JS, `nojs_audit` does not |
| Guaranteeing AI citations | We report what is declared, not what will be cited |

Limits: 60 requests/minute per key; per call at most 200 issues, 20 audits, 3 perf runs. The full per-tool input/output contract lives in the capability spec.

## FAQ

### How do I connect GEO Sentry MCP?

Create an API key at `/console/mcp`, paste the config into your client, then click Test connection.

### Is the API key shown again?

No. The full key is shown once. Create a new key and revoke the old one if you lose it.

### What happens when my quota runs out?

You get `429 QUOTA_EXCEEDED` with a reset time. Calls do not fail silently — buy credits or upgrade to continue.

### Can I use it on multiple stores?

**Multi-store needs the Enterprise tier.** Agency or reseller? Contact us to agree terms: [Help & contact](/help/contact-us/) · [support@geoshenji.com](mailto:support@geoshenji.com).

### What if I uninstall the app?

MCP access pauses and calls return a permission error. The key is kept and works again after reinstall; purchased credits are not lost.


---


# Connect GEO Sentry MCP in 3 minutes

GEO Sentry MCP lets your own AI client call our capabilities directly. You need an API key, one config block, and a one-click connection test.

## What you can do with it

1. **Run a batch audit** of many URLs from your own script instead of clicking in the console.
2. **Ask your AI client about your scores** — for example "what is my AI visibility score and what changed this week?"
3. **Wire GEO data into your own system** — pull audit results as JSON into your CRM or dashboard.

## Step 1: Create an API key

1. Sign in and open `/console/mcp`.
2. Click **Create API key**.
3. You will see the full key once (`sk_live_…`) with a **Copy** button. Copy it now.

If you lose the key, create a new one and revoke the old one — revocation takes effect immediately.

## Step 2: Paste the config

### Claude Desktop

Add this to `claude_desktop_config.json` (macOS: `~/Library/Application Support/Claude/`, Windows: `%APPDATA%\Claude\`), then restart the app.

```json
{
  "mcpServers": {
    "geosentry": {
      "command": "npx",
      "args": ["-y", "@geosentry/mcp-server"],
      "env": {
        "GEOSENTRY_API_KEY": "YOUR_API_KEY",
        "GEOSENTRY_BASE_URL": "https://api.geoshenji.com"
      }
    }
  }
}
```

### Cursor

Add this to `.cursor/mcp.json`:

```json
{
  "mcpServers": {
    "geosentry": {
      "url": "https://api.geoshenji.com/mcp",
      "headers": { "Authorization": "Bearer YOUR_API_KEY" }
    }
  }
}
```

### Your own HTTP client

```bash
curl -s https://api.geoshenji.com/mcp \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "content-type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'
```

A `tools/list` response means authentication works.

## Step 3: Test the connection

Click **Test connection** on `/console/mcp`. We call one read-only tool with your key and show the result. A green check plus a sample response means you are connected.

## Usage and quota

**Quota resets monthly.** Check usage at [`/console/mcp`](/console/mcp) — calls used, remaining, last seven days. Hit the cap? Buy a credit pack, or [upgrade your plan](/pricing/). Until reset you get `429 QUOTA_EXCEEDED`; read access keeps working where allowed.

## Tool list, inputs and billing weight

Fourteen tools today. The **billing weight** column is what one call costs in credits — it reflects the real cost of the work (a single database read vs. a full crawl).

| Tool | What it does | Main inputs | Billing weight |
| --- | --- | --- | --- |
| `get_audit_report` | Read your audit summaries | `auditId` or `host` (default: latest, max 20) | 1 credit |
| `list_issues` | Read issues from one audit (max 200; truncation is stated) | `auditId` | 1 credit |
| `get_visibility_summary` | Read visibility metrics over 7/14/30 days | `windowDays` | 1 credit |
| `get_fix_hints` | Actionable fixes from an existing issue list (does not invent data) | `auditId`, `topN` (default 5, max 20) | 1 credit |
| `geo_audit_get` | Poll an audit run by id | `runId` | 1 credit |
| `qa_run_get` | Poll a server-side QA run by id | `runId` | 1 credit |
| `geo_audit_run` | Start a site audit (asynchronous; returns `runId`) | `url`, options | 50 credits |
| `perf_audit` | Performance check (server-side, asynchronous) | `url` | 50 credits |
| `nojs_audit` | No-JS visibility check (server-side) | `url` | 50 credits |
| `html_order` | Static HTML ordering check (server-side) | `url` | 50 credits |
| `site_audit` | Full three-in-one site check (server-side) | `url` | 50 credits |
| `geo_gsc_search_analytics` | Search analytics: queries, clicks, impressions, CTR, position (read-only GSC) | `siteUrl` and options | 10 credits |
| `geo_gsc_striking_distance` | Striking-distance keywords: queries ranking 11–20 (read-only GSC) | `siteUrl` and options | 10 credits |
| `geo_gsc_url_inspection` | URL inspection: index status and crawl issues (read-only GSC) | `url` | 10 credits |

**Typical latency.** Read tools answer in well under a second. Server-side tools return `PENDING` + `runId` immediately; the real work takes tens of seconds to a few minutes, so poll with `qa_run_get` / `geo_audit_get` instead of holding one request open.

**A call that is rejected costs nothing.** You are only charged for calls that actually run.

## Rate limits, credits and error codes

**Rate limit.** It follows your plan, not a fixed number: Free 30/min, Starter 120/min, Growth 300/min, Enterprise 1,200/min. When you exceed it you get `429 RATE_LIMITED` with a `Retry-After` header — back off for that many seconds rather than retrying in a tight loop. If your tenant has no plan configured yet, no per-minute cap is applied (only the monthly quota), so a misconfigured tenant can hammer the endpoint — set a plan before going live.

**Credits.** Every successful tool call is charged its billing weight shown above (1 or 50 credits). Two different failures produce two different messages, and both are actionable:

| HTTP | Code | What it means | What to do |
| --- | --- | --- | --- |
| 402 | `PAYMENT_REQUIRED` | The tool was not executed because there are no credits. The body states whether your plan grants MCP credits at all and how many were granted so far. | Top up a credit pack, upgrade, or ask an admin to grant credits. Automatic top-up is disabled until a payment channel exists. |
| 402 | `NO_CREDITS_GRANTED` | The credit ledger has never granted credits to this tenant — this is *not* "you used them all up". | Same as above; an operator has to grant credits or move you to a plan that includes them. |

**Node example (no packages needed).** Copy this, set `GEOSENTRY_API_KEY`, run it:

```js
const res = await fetch('https://api.geoshenji.com/mcp', {
  method: 'POST',
  headers: {
    'content-type': 'application/json',
    authorization: `Bearer ${process.env.GEOSENTRY_API_KEY}`,
  },
  body: JSON.stringify({
    jsonrpc: '2.0',
    id: 1,
    method: 'tools/call',
    params: { name: 'list_issues', arguments: { auditId: 'YOUR_AUDIT_ID' } },
  }),
});
console.log(res.status, await res.json());
```

If the response is `401`, the key is wrong or revoked. If it is `403 SCOPE_DENIED`, your plan does not include that tool. If it is `402`, read the code above — it tells you whether credits were never granted or just ran out.

## Troubleshooting

| Symptom | Code | Cause | Fix |
| --- | --- | --- | --- |
| 401 | `KEY_INVALID` | Key is wrong, revoked, or from another environment | Create a new key, update the config, restart the client |
| 401 | `KEY_MISSING` | Request has no `Authorization` header | Set `GEOSENTRY_API_KEY` in the config |
| 429 | `QUOTA_EXCEEDED` | Monthly quota used up | Buy credits or upgrade; wait for reset |
| 429 | `RATE_LIMITED` | Too many concurrent requests | Lower concurrency; retry after `Retry-After` |
| 403 | `SCOPE_DENIED` | Your plan does not include that tool | Use an allowed tool, or upgrade |
| Timeout | — | Network, proxy or firewall | Verify with the curl example above |

## Response format and `unmeasured`

Every tool returns JSON-RPC 2.0. A successful call puts a JSON **string** in `result.content[0].text`; a tool-level failure sets `result.isError: true` and keeps a readable `CODE: message` in the same text field.

Units are explicit: timestamps are ISO8601 UTC, scores are 0–100, ratios are 0–1, latency is milliseconds.

When there is not enough data we return `measured: false` (or `unmeasured` plus a `reason`) — **never 0**. `qa_run_get` returns `NOT_FOUND` for an unknown id instead of pretending a run completed.

## What we do not do

| Not supported | Why |
| --- | --- |
| Writing store data or editing pages | Writes stay human-confirmed in the console |
| Logged-in pages, GSC write operations | We do not hold your credentials |
| Bypassing robots.txt, penetration testing | Unlawful and unethical; we follow the public crawl policy |
| Collecting PII | Compliance red line; attribution stores hashed order ids only |
| Full JS-rendered equivalence in `nojs_audit` | By design — `perf_audit` executes JS, `nojs_audit` does not |
| Guaranteeing AI citations | We report what is declared, not what will be cited |

Limits: 60 requests/minute per key; per call at most 200 issues, 20 audits, 3 perf runs. The full per-tool input/output contract lives in the capability spec.

## FAQ

### How do I connect GEO Sentry MCP?

Create an API key at `/console/mcp`, paste the config into your client, then click Test connection.

### Is the API key shown again?

No. The full key is shown once. Create a new key and revoke the old one if you lose it.

### What happens when my quota runs out?

You get `429 QUOTA_EXCEEDED` with a reset time. Calls do not fail silently — buy credits or upgrade to continue.

### Can I use it on multiple stores?

**Multi-store needs the Enterprise tier.** Agency or reseller? Contact us to agree terms: [Help & contact](/help/contact-us/) · [support@geoshenji.com](mailto:support@geoshenji.com).

### What if I uninstall the app?

MCP access pauses and calls return a permission error. The key is kept and works again after reinstall; purchased credits are not lost.
