GeoAdwise MCP Server
# GeoAdwise MCP Server & Workflow Toolkit (`@geoadwise/mcp-server`)
English | [简体中文](README.zh-CN.md)
[](LICENSE)
[](https://nodejs.org/)
[](https://modelcontextprotocol.io/)
[](https://www.geoadwise.com/products/geo)
Official Model Context Protocol (MCP) server and OpenAPI 3.1 workflow toolkit for **[GeoAdwise](https://www.geoadwise.com)** — a verifiable **GEO (Generative Engine Optimization)** and **AI Search Visibility** platform supporting both global and Chinese AI engines (ChatGPT, Perplexity, DeepSeek, Doubao, Qwen, etc.).
Built with a **strict evidence-first, safety-first design**:
- **6 Read-Only Evidence Tools**: Inspect saved brand visibility projects, real answer samples, source URLs, rule-based diagnoses, reports, and task states — **zero collection triggers, zero model billing, zero quota deduction**.
- **Human-in-the-Loop Proposal Tool (`propose_agent_action`)**: Creates pending resample or rewrite-draft proposals only. Never exposes `approve` or `execute` tools; humans review and confirm inside the GeoAdwise web app.
- **Content Optimization Tool (`geo_optimize`)**: Explicitly marked non-read-only (`geo-skill` scope) for GEO rewrites, Schema.org JSON-LD generation, and citation suggestions.
- **Dify / Coze / n8n / Feishu Ready**: Ships a ready-to-import OpenAPI 3.1 specification ([`integrations/geoadwise-openapi-dify-coze.yaml`](integrations/geoadwise-openapi-dify-coze.yaml)) for visual AI workflow builders.
---
## Quick Start (MCP Clients)
Requires **Node.js 18+**. Clone the repository and install dependencies:
```bash
git clone https://github.com/geoadwise/geoadwise-mcp-server.git
cd geoadwise-mcp-server
npm ci
```
Create a scoped API key at **[GeoAdwise API Keys](https://www.geoadwise.com/app/api-keys)**:
- Read-only evidence & diagnosis: `geo:read`
- Create human-approved proposals: `geo:actions:propose`
- Run content rewrite & JSON-LD optimization: `geo-skill`
### Claude Code
```bash
claude mcp add geoadwise \
-e GEO_API_BASE=https://api.geoadwise.com/api/v1 \
-e GEO_API_KEY=<YOUR_GEO_API_KEY> \
-- node /absolute/path/to/geoadwise-mcp-server/mcp-server.js
```
### Cursor / Claude Desktop
Add to `.cursor/mcp.json` or `claude_desktop_config.json`:
```json
{
"mcpServers": {
"geoadwise": {
"command": "node",
"args": ["/absolute/path/to/geoadwise-mcp-server/mcp-server.js"],
"env": {
"GEO_API_BASE": "https://api.geoadwise.com/api/v1",
"GEO_API_KEY": "<YOUR_GEO_API_KEY>"
}
}
}
}
```
### OpenAI Codex CLI (`~/.codex/config.toml`)
```toml
[mcp_servers.geoadwise]
command = "node"
args = ["/absolute/path/to/geoadwise-mcp-server/mcp-server.js"]
[mcp_servers.geoadwise.env]
GEO_API_BASE = "https://api.geoadwise.com/api/v1"
GEO_API_KEY = "<YOUR_GEO_API_KEY>"
```
---
## Dify / Coze / n8n Integration (OpenAPI 3.1)
Import [`integrations/geoadwise-openapi-dify-coze.yaml`](integrations/geoadwise-openapi-dify-coze.yaml) directly into **Dify Custom Tools**, **Coze Plugins**, or **n8n**:
- **Server URL**: `https://api.geoadwise.com/api/v1`
- **Auth**: API Key in Header (`X-API-Key`)
For detailed step-by-step screenshots and workflow templates in Chinese (including Feishu Bitable automation), see [README.zh-CN.md](README.zh-CN.md).
---
## Available Tools & Required Scopes
| Tool (MCP / OpenAPI `operationId`) | Scope | Read-Only | Description |
| :--- | :--- | :---: | :--- |
| `list_geo_projects` / `listGeoProjects` | `geo:projects:read` | Yes | List accessible personal and organization brand visibility projects |
| `get_brand_run` / `getBrandRun` | `geo:runs:read` | Yes | Inspect saved AI answer samples, citations, and error breakdown |
| `diagnose_brand_run` / `diagnoseBrandRun` | `geo:runs:read` | Yes | Run deterministic rule-based diagnosis on saved evidence (no LLM call) |
| `get_geo_report` / `getGeoReport` | `geo:reports:read` | Yes | Read saved content analysis (`analysis`) or short-video (`doubao`) reports |
| `get_task_status` / `getTaskStatus` | `geo:tasks:read` / `geo:actions:read` | Yes | Check background brand run or pending action status |
| `get_agent_action` / `getAgentAction` | `geo:actions:read` | Yes | View approval status and in-app approval URL for a proposed action |
| `propose_agent_action` / `proposeAgentAction` | `geo:actions:propose` | No (proposal only) | Create a pending `RESAMPLE` or `CREATE_DRAFT` proposal requiring web approval |
| `geo_optimize` / `optimizeGeoContent` | `geo-skill` | No (metered) | Generate GEO content rewrites, Schema.org JSON-LD, and citation suggestions |
---
## Security & Verification
- Enforces **HTTPS** on all remote `GEO_API_BASE` endpoints (plain HTTP is allowed only for `localhost` / `127.0.0.1` / `[::1]`).
- Disables HTTP redirects (`redirect: 'error'`) and enforces bounded request timeouts so credentials are never leaked.
- Treats collected AI answers strictly as untrusted data, never executable instructions.
- Run the offline verification suite (13 tests covering real MCP SDK handshake, stdio transport, input validation, and credential-leak guards):
```bash
npm test
```
## Links
- **GeoAdwise Platform**: https://www.geoadwise.com
- **Pricing & Three-Pool Quotas**: https://www.geoadwise.com/pricing
- **Help Center**: https://www.geoadwise.com/help
- **WordPress & WooCommerce Plugin**: https://github.com/geoadwise/geoadwise-wordpress
- **License**: [MIT](LICENSE)
TDQS
Scored across 8 tools
Most tools target clearly distinct resources: projects, brand runs, reports, tasks, actions, diagnosis, optimization, and proposals. However, get_brand_run vs. get_task_status(kind=brand_run) and get_agent_action vs. get_task_status(kind=agent_action) have some boundary overlap around retrieving run/action state.
The set mostly follows a predictable verb_noun convention: get_agent_action, get_brand_run, get_geo_report, get_task_status, list_geo_projects, diagnose_brand_run, and propose_agent_action. The main deviation is geo_optimize, which uses noun_verb ordering.
Eight tools is well-scoped for a GEO monitoring and optimization server. Each tool has a distinct role in querying projects, evidence, reports, tasks, actions, diagnosis, optimization, or proposals.
The surface covers read access, diagnosis, reporting, optimization, and proposal workflows, but lacks obvious discovery/list operations for brand runs, reports, and actions beyond singular get-by-ID tools. There is also no direct way to create projects or start collection runs, which may force agents to rely on external context or app-side actions.