Connect the geoaeo MCP server to Gemini CLI. Audit a site and generate GEO and AEO artifacts from the Gemini agent.
geoaeo and geoaeo-mcpaudit, init, gen, humanize, mcp. No other commands exist.npx geoaeo-mcp over stdioaudit, gen, humanize# one-off
npx geoaeo audit ./ --json
# or add to the project
npm install -D geoaeo
npx geoaeo --help
# verify the MCP binary
npx geoaeo-mcp --helpGemini CLI starts geoaeo-mcp over stdio. You do not run it by hand.
Gemini CLI reads MCP servers from ~/.gemini/settings.json under mcpServers. Use command and args.
Add this entry to ~/.gemini/settings.json:
{
"mcpServers": {
"geoaeo": {
"command": "npx",
"args": ["-y", "geoaeo-mcp"]
}
}
}If ~/.gemini/settings.json already exists, merge the geoaeo key under mcpServers. If it does not exist, create the file with the block above.
Project scope alternative: create .gemini/settings.json in the repo root with the same block. Global scope takes precedence in some builds.
Steps:
~/.gemini/settings.json.cat ~/.gemini/settings.json | jq ..gemini again./mcp or gemini mcp list and confirm geoaeo shows with 3 tools.gemini.audit, gen, and humanize appear.If no tools appear, see Troubleshooting.
Prompt the agent:
Use geoaeo audit on ./ and summarize the score and the top fixes. If ./ is empty, use https://example.com.
What the agent does:
audit with {"target": "./"} or {"target": "https://example.com"}.score, checks[], topFixes[], pages[].Equivalent CLI:
npx geoaeo audit ./ --json
npx geoaeo audit https://example.com --jsonUse topFixes to choose which artifact to generate next.
This uses gen, which reads geoaeo.config.ts from the current directory.
npx geoaeo init ./
cat geoaeo.config.tsUse geoaeo gen to create the JSON-LD for this site as type software. Show the JSON and explain where to place it.
What the agent does:
gen with {"artifact": "jsonld", "type": "software"}.<script type="application/ld+json"> tag in the page head).Other artifacts:
{"artifact": "llms"}{"artifact": "llms-full"}{"artifact": "sitemap"}{"artifact": "robots"}{"artifact": "webmcp"}Equivalent CLI:
npx geoaeo gen jsonld --type software
npx geoaeo gen sitemap -o ./public/sitemap.xml
npx geoaeo gen webmcpThe humanize tool is also available: {"glob": "content/**/*.md", "write": false}.
MCP server not found. Confirm ~/.gemini/settings.json is valid JSON. Run cat ~/.gemini/settings.json | jq .. Check Node 20+ with node --version.
npx ENOENT or permission error. Run npx -y geoaeo-mcp by hand. It should wait on stdin. If it fails, fix npm cache perms or install Node via nvm.
audit returns empty or low score. Ensure you audit the repo root that contains geoaeo.config.ts and site files. Use {"target": "./"} when the agent's cwd is the repo root.
gen fails with Cannot find config. Run npx geoaeo init ./ in the repo root, then retry.
Tools appear but calls hang. Check that no wrapper overrides stdio. Use exact command: npx with args: ["-y", "geoaeo-mcp"]. Restart Gemini CLI after edits.
geoaeo. Bins: geoaeo, geoaeo-mcp.audit takes target (string). gen takes artifact enum and optional type. humanize takes glob and optional write (boolean).