# google-knowledge-graph

google-knowledge-graph connects an agent to Google's Knowledge Graph API. Returns structured data about people, places and organisations during research tasks.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 13 repo stars
- Author: houtini-ai
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/houtini-ai/google-knowledge-graph-mcp
- Updated: 2026-10-10
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/google-knowledge-graph

## What it does

The server exposes two tools. `search_knowledge_graph` finds entities by name or description, `lookup_knowledge_graph_entities` fetches a record by Machine ID. Results come back as JSON with names, schema.org types, Wikipedia links, images, relevance scores and MIDs for follow-up calls.

You run it through `npx`, no build step needed. The API itself is free, but the server will not start without a `GOOGLE_KNOWLEDGE_GRAPH_API_KEY` in the environment.

Type filtering helps when a query like “Python” matches several things. You can pass `["ComputerLanguage"]` and narrow the result set. The limit parameter goes up to 500, languages can be pinned to a single code.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `GOOGLE_KNOWLEDGE_GRAPH_API_KEY` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add google-knowledge-graph -e GOOGLE_KNOWLEDGE_GRAPH_API_KEY=<GOOGLE_KNOWLEDGE_GRAPH_API_KEY> -- npx -y @houtini/google-knowledge-graph-mcp
```
Replace <…> with your own values

### Codex

**Platform CLI**
```bash
codex mcp add google-knowledge-graph --env GOOGLE_KNOWLEDGE_GRAPH_API_KEY=<GOOGLE_KNOWLEDGE_GRAPH_API_KEY> -- npx -y @houtini/google-knowledge-graph-mcp
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "google-knowledge-graph": {
            "command": "npx",
            "args": [
                "-y",
                "@houtini/google-knowledge-graph-mcp"
            ],
            "env": {
                "GOOGLE_KNOWLEDGE_GRAPH_API_KEY": "<GOOGLE_KNOWLEDGE_GRAPH_API_KEY>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "google-knowledge-graph": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@houtini/google-knowledge-graph-mcp"
            ],
            "env": {
                "GOOGLE_KNOWLEDGE_GRAPH_API_KEY": "<GOOGLE_KNOWLEDGE_GRAPH_API_KEY>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e GOOGLE_KNOWLEDGE_GRAPH_API_KEY=<GOOGLE_KNOWLEDGE_GRAPH_API_KEY> google-knowledge-graph npx -y @houtini/google-knowledge-graph-mcp
```
Replace <…> with your own values

## When to use it
- verify entity facts while the agent works on research
- disambiguate names that match multiple real-world things
- pull structured descriptions and Wikipedia URLs into a workflow
- resolve an entity by Machine ID instead of searching again

## Example prompts
- Search the knowledge graph for Marie Curie
- Find the entity Python with type ComputerLanguage
- Look up knowledge graph entity /m/0dl567

## Similar
- [Knowledge Graph Builder](https://affpapa.org/en/nevibecode/skills/knowledge-graph-builder.md) — skill · 438 installs
- [agency-knowledge-graph-engineer](https://affpapa.org/en/nevibecode/skills/agency-knowledge-graph-engineer.md) — skill · ★ 85 repo stars
- [knowledge-graph-builder](https://affpapa.org/en/nevibecode/skills/oakoss-knowledge-graph-builder.md) — skill · 222 installs
- [knowledge-graph-construction](https://affpapa.org/en/nevibecode/skills/knowledge-graph-construction.md) — skill · 103 installs
- [Psychedelics Knowledge Graph](https://affpapa.org/en/nevibecode/mcp/psychedelics-knowledge-graph.md) — MCP server · ★ 6 repo stars
- [understand-anything-knowledge-graph](https://affpapa.org/en/nevibecode/skills/understand-anything-knowledge-graph.md) — skill · 2400 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
