Google Knowledge Graph logo

Google Knowledge Graph

Searches Google's Knowledge Graph for structured entity data by query or Machine ID.

Install Google Knowledge Graph

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "google-knowledge-graph": {
      "command": "npx",
      "args": [
        "-y",
        "@houtini/google-knowledge-graph-mcp"
      ],
      "env": {
        "GOOGLE_KNOWLEDGE_GRAPH_API_KEY": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

The google-knowledge-graph MCP server connects MCP clients to Google's Knowledge Graph Search API. It provides tools for searching entities by name or description and retrieving entities by Google Machine ID (MID), with JSON results containing names, types, descriptions, URLs, images, and relevance scores. Use it for entity verification, resolution, and structured research involving people, places, organizations, concepts, and other entity types. It runs through the standard MCP configuration with a Google Cloud API key and supports free-tier quotas.

Use cases

  • Verify entity names and descriptions during research
  • Resolve entities from Google Machine IDs
  • Filter search results by schema.org entity type
  • Retrieve ranked metadata for people, places, and organizations

Key features

  • Search entities by name or description
  • Look up entities by Machine ID
  • Filter by language and entity type
  • Return descriptions, URLs, images, and relevance scores
  • Support up to 500 results per search

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked 3d ago

Recent health check succeeded.

11/11 checks healthy over the last 57d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 16d ago via OSV.dev · @houtini/google-knowledge-graph-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars13Stargazers on the source repository.
npm downloads1kPackage downloads in the last 30 days.
Last commit14d agoMost recent push to the default branch.

How Google Knowledge Graph works

What google-knowledge-graph does

google-knowledge-graph exposes Google's Knowledge Graph Search API through MCP. It lets an AI client find structured records for real-world entities such as people, companies, locations, events, creative works, products, programming languages, sports teams, countries, and cities.

Search results can include an entity's name, schema.org-style types, short and detailed descriptions, image and web URLs, Google Machine IDs, and relevance scores. The returned data is JSON that an MCP client can parse for research or downstream entity-resolution tasks.

Two access patterns are available:

  • Search using a name or descriptive query.
  • Retrieve known entities using one or more Machine IDs.

How it works

The server sends requests to Google's https://kgsearch.googleapis.com/v1/entities:search endpoint and passes the configured API key as a query parameter. Responses use JSON-LD and contain an itemListElement result array, which the server exposes as structured JSON.

Query searches accept an optional language list, entity-type filters, and a result limit. The default limit is 20 and the maximum is 500. Machine ID lookups accept an array of IDs and can also specify languages. Common type filters include Person, Organization, Place, Event, CreativeWork, Product, and ComputerLanguage; multiple types can be combined.

The server uses CommonJS output and is intended to run as a Node.js MCP process over the configuration supported by an MCP host.

Setup and configuration

Create a Google Cloud project, enable the Knowledge Graph Search API, and create an API key under Credentials. Restricting the key to that API is recommended. The API key must be supplied through GOOGLE_KNOWLEDGE_GRAPH_API_KEY.

The simplest installation uses the npm package through npx:

config.json
{
  "mcpServers": {
    "google-knowledge-graph": {
      "command": "npx",
      "args": ["-y", "@houtini/google-knowledge-graph-mcp"],
      "env": {
        "GOOGLE_KNOWLEDGE_GRAPH_API_KEY": "your-api-key-here"
      }
    }
  }
}

Claude Code can register the same command with claude mcp add, passing the API key as an environment option. Alternatively, clone the repository, run npm install, build with npm run build, and point the MCP configuration at dist/index.js using Node.js. Claude Desktop configuration files are stored under its platform-specific application-support location; Windows paths require escaped backslashes.

Tools and capabilities

search_knowledge_graph

Searches by a required query string. Optional languages, types, and limit parameters control language selection, entity filtering, and the number of results.

lookup_knowledge_graph_entities

Resolves required Machine IDs supplied as an array. An optional languages parameter controls language selection for the returned records.

These tools support workflows that need ranked candidates, entity metadata, descriptions, official URLs, images, or IDs for later lookups.

Limitations and notes

Requests are subject to Google's free-tier quotas; the documented general limit is approximately 100,000 queries per day. An API key is required, and a Google Cloud key must be used rather than a Google AI Studio key. The Knowledge Graph Search API must also be enabled in the associated project.

If searches return no results, broader query terms, fewer type filters, or a higher result limit may help. When the server is missing from Claude Desktop, check JSON syntax, environment-variable spelling, path escaping, and restart the application completely after changing configuration.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Google Knowledge Graph

google-knowledge-graph is an MCP server that connects MCP clients to Google's Knowledge Graph Search API. Its main tools search for entities by query and look up entities by Machine ID. Results include structured names, types, descriptions, URLs, images, identifiers, and relevance scores for research and entity-resolution workflows.

Install it with `npx` by configuring `@houtini/google-knowledge-graph-mcp` as the MCP command. Add `GOOGLE_KNOWLEDGE_GRAPH_API_KEY` to the environment, or clone the repository, run `npm install`, build it, and run the generated `dist/index.js` file.

Create or select a project in Google Cloud, enable the Knowledge Graph Search API, and create an API key under Credentials. Set the key as `GOOGLE_KNOWLEDGE_GRAPH_API_KEY`; restricting it to the Knowledge Graph Search API is recommended.

Yes, google-knowledge-graph supports Claude Desktop and Claude Code. Claude Desktop uses an `mcpServers` configuration entry, while Claude Code uses `claude mcp add` with the API key and the `npx` command.

It can filter searches using types such as `Person`, `Organization`, `Place`, `Event`, `CreativeWork`, `Product`, `ComputerLanguage`, `SportsTeam`, `Country`, and `City`. Multiple types can be combined in a search.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewGoogle Knowledge Graph AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/google-knowledge-graph?style=directory)](https://allmcps.com/mcp/google-knowledge-graph)
HTML Embed
<a href="https://allmcps.com/mcp/google-knowledge-graph"><img src="https://allmcps.com/api/badge/google-knowledge-graph?style=directory" alt="Google Knowledge Graph on AllMCPs" /></a>