Skip to main content
MCP server CX Codex

google-knowledge-graph — Claude Code MCP server for entity search

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

MIT ★ 13 updated 2026-10-10

Install into Claude Code · Platform CLI All methods and platforms ↓
claude mcp add google-knowledge-graph -e GOOGLE_KNOWLEDGE_GRAPH_API_KEY=<GOOGLE_KNOWLEDGE_GRAPH_API_KEY> -- npx -y @houtini/google-knowledge-graph-mcp
Open on GitHub

What google-knowledge-graph 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.

What it helps with

  • 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 for the agent

  • Search the knowledge graph for Marie Curie
  • Find the entity Python with type ComputerLanguage
  • Look up knowledge graph entity /m/0dl567

How to install google-knowledge-graph

Platform CLI

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

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about google-knowledge-graph

How do I install google-knowledge-graph in Claude Code?

Run claude mcp add google-knowledge-graph -e GOOGLE_KNOWLEDGE_GRAPH_API_KEY=<GOOGLE_KNOWLEDGE_GRAPH_API_KEY> -- npx -y @houtini/google-knowledge-graph-mcp. Check with claude mcp get google-knowledge-graph; the status should read Connected.

What does google-knowledge-graph do?

It gives an MCP client access to the free Google Knowledge Graph Search API. The server returns structured entity data: types, descriptions, images, Wikipedia links and Machine IDs.

Do I need a paid Google Cloud account?

No. Create a project in Google Cloud Console, enable the Knowledge Graph Search API and generate a key. Billing and card details are not required.

Similar MCP servers

All MCP servers for Agent setup: memory, context, orchestration →
Knowledge Graph Builder daffy0208 Knowledge Graph Builder — a skill for designing knowledge graphs: ontology, graph database choice, entity and relationship extraction. Useful when your data lives in the connections between things. CX Codex +1 438installs agency-knowledge-graph-engineer huytran1120 agency-knowledge-graph-engineer is a Claude Code skill that turns unstructured documents into graph networks of nodes and edges. Reduces context consumption via local subgraph retrieval. CX Codex +1 ★ 85repo stars knowledge-graph-builder oakoss The knowledge-graph-builder skill guides knowledge-graph design, graph database choice, and graph-plus-vector retrieval. Use it for Graph RAG, entity resolution, and fact checks. CX Codex +1 222installs knowledge-graph-construction lyndonkl knowledge-graph-construction guides the design of knowledge graphs from unstructured data, covering model selection between LPG and RDF, schema creation, and extraction for RAG. CX Codex +1 103installs Psychedelics Knowledge Graph povilaskarvelis The Psychedelics Knowledge Graph MCP server enables AI agents to query a structured knowledge graph of psychedelic research. The service allows searching through papers, compounds, and clinical findings. CX Codex +1 ★ 6repo stars understand-anything-knowledge-graph reason-machines understand-anything-knowledge-graph runs a multi-agent pass over your project, builds a graph of files, functions and dependencies, then opens an interactive dashboard for exploring it. CX Codex +1 2,400installs

Project sponsors

Companies that keep this analytics open