Google Knowledge Graph MCP
This MCP server lets Claude or any MCP client search and retrieve structured Google Knowledge Graph entity data.
Search Google Knowledge Graph entities by name or topic query.
Filter searches by schema.org entity types such as Person, Organization, Place, or ComputerLanguage.
Specify language codes and limit results from 1 to 500 (default 20).
Look up specific entities directly by Machine IDs (MIDs).
Retrieve structured JSON including entity names, types, descriptions, detailed descriptions, images, URLs, relevance scores, and MIDs.
Search for real-world entities - people, places, organisations, concepts - and get structured data back from Google's Knowledge Graph.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Google Knowledge Graph MCP Search the knowledge graph for "Leonardo da Vinci""
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Google Knowledge Graph Search MCP
Model Context Protocol server that connects Claude (or any MCP client) to Google's free public Knowledge Graph API. Search for real-world entities - people, places, organisations, concepts - and get structured data back.
Quick Navigation
Why this exists | What you get | Installation | Getting your API key | Usage examples | Parameters | Entity types | Troubleshooting
What is this? An MCP server. If you don't know what that means, you probably don't need this. If you're using Claude Desktop or another MCP-compatible client and want to search Google's knowledge database, this is for you.
Why This Exists
I built this because I needed a way for Claude to verify entity information during research workflows. Google's Knowledge Graph contains structured data about millions of real-world entities - the same data that powers those knowledge panels in Google Search results.
The Knowledge Graph Search API is completely free. No billing account, no usage costs, just a Google Cloud API key. Most developers don't seem to know this exists, which is odd given how useful it is.
This MCP gives Claude (or any MCP client) access to that database.
Related MCP server: Google Search MCP Server
What You Get
Two tools for searching Google's knowledge graph:
1. Search by query - search_knowledge_graph
Search for entities by name or description. Returns structured data including entity types, descriptions, Wikipedia URLs, and relevance scores.
2. Lookup by MID - lookup_knowledge_graph_entities
If you already have Machine IDs (Google's internal entity identifiers), look them up directly. Useful for entity resolution workflows.
Both return JSON with:
Entity names and types
Detailed descriptions (usually from Wikipedia)
Official images and URLs
Result scores (relevance ranking)
Machine IDs for further lookups
Installation
NPX (Easiest)
Add this to your claude_desktop_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 (CLI)
Claude Code uses a different registration mechanism -- it doesn't read claude_desktop_config.json. Use claude mcp add instead:
claude mcp add \
-e GOOGLE_KNOWLEDGE_GRAPH_API_KEY=your-api-key-here \
-s user \
google-knowledge-graph -- npx -y @houtini/google-knowledge-graph-mcpVerify with:
claude mcp get google-knowledge-graphYou should see Status: Connected.
Local Install
If you prefer running from source:
git clone https://github.com/houtini-ai/google-knowledge-graph-mcp.git
cd google-knowledge-graph-mcp
npm install
npm run buildThen configure Claude Desktop:
{
"mcpServers": {
"google-knowledge-graph": {
"command": "node",
"args": ["C:\\path\\to\\google-knowledge-graph-mcp\\dist\\index.js"],
"env": {
"GOOGLE_KNOWLEDGE_GRAPH_API_KEY": "your-api-key-here"
}
}
}
}Windows users: Use double backslashes in paths: C:\\MCP\\...
Config location:
Windows:
%APPDATA%\Claude\claude_desktop_config.jsonmacOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
Getting Your API Key
Google's Knowledge Graph Search API is free - no billing account, no card, no quota to unlock.
Go to Google Cloud Console
Create a new project (or select an existing one)
Enable "Knowledge Graph Search API" in the API Library
Navigate to "Credentials" and create an API key
(Optional but recommended) Restrict the key to Knowledge Graph Search API only
That's it. No credit card, no billing setup.
Usage Examples
Once installed and Claude Desktop is restarted, you can:
Basic entity search:
Search the knowledge graph for "Marie Curie"Entity type filtering:
Search knowledge graph for "Python" with types ["ComputerLanguage"]Multiple results:
Search knowledge graph for "Paris" limit 5Lookup by MID:
Look up knowledge graph entity /m/0dl567The MCP returns structured JSON that Claude can parse. You'll get entity names, types, descriptions, URLs, and relevance scores.
What Gets Returned
Example response structure:
{
"entities": [
{
"mid": "/m/0dl567",
"name": "Taylor Swift",
"type": ["Person", "Thing"],
"description": "American singer-songwriter",
"detailedDescription": "Taylor Alison Swift is an American singer-songwriter...",
"image": "https://...",
"url": "http://en.wikipedia.org/wiki/Taylor_Swift",
"resultScore": 4258.07
}
],
"count": 1
}Parameters
search_knowledge_graph
query (required): Search term
languages (optional): Language codes array, e.g.
["en"]types (optional): Entity types to filter by, e.g.
["Person", "Organization"]limit (optional): Max results (default 20, max 500)
lookup_knowledge_graph_entities
ids (required): Array of Machine IDs (MIDs), e.g.
["/m/0dl567"]languages (optional): Language codes array
Common Entity Types
The Knowledge Graph uses schema.org types. Common ones:
Person- Individual peopleOrganization- Companies, institutionsPlace- Locations, geographical entitiesEvent- Historical or current eventsCreativeWork- Books, films, music, artProduct- Commercial productsComputerLanguage- Programming languagesSportsTeam- Sports teamsCountry- Nations and countriesCity- Cities and municipalities
You can combine types for more specific searches.
Troubleshooting
MCP not appearing in Claude:
Check your JSON syntax - one error breaks everything
Verify the path uses correct escaping (
\\on Windows)Completely restart Claude Desktop (quit, not just minimise)
Check the API key environment variable spelling
"API key required" error:
The environment variable isn't being read
Check spelling:
GOOGLE_KNOWLEDGE_GRAPH_API_KEYRestart Claude Desktop after config changes
No results returned:
Try different query terms
Remove entity type filters to broaden search
Check result limit isn't set too low
400 "API key not valid":
API key is invalid, expired, or the wrong kind (a Google AI Studio "AQ." key won't work - it must be a Google Cloud "AIza..." key)
Knowledge Graph Search API isn't enabled in your Google Cloud project
Building From Source
npm install
npm run buildThe build process compiles TypeScript to CommonJS in dist/. No special configuration needed.
Technical Details
API Endpoint:
https://kgsearch.googleapis.com/v1/entities:searchResponse Format: JSON-LD with
itemListElementarrayAuthentication: API key via query parameter
Rate Limits: Free tier quotas apply (generally 100,000 queries/day)
Module Format: CommonJS (compatible with Node.js MCP hosts)
Why CommonJS?
The MCP SDK uses CommonJS patterns. I've stuck with that for compatibility. If you're building your own MCP and want ES modules, that's fine - just different choices.
Contributing
If you find issues or have improvements:
Check existing issues first
Test your changes locally
Submit a PR with clear description
I'm particularly interested in hearing about:
Entity types that need better handling
Response parsing edge cases
Real-world usage patterns
Licence
MIT - do what you want with it.
Author
Built by Richard Baxter (Houtini) as part of a collection of MCP servers for AI-assisted development and research workflows.
Other Houtini MCPs:
@houtini/gemini-mcp- Google AI chat with grounding and deep research@houtini/geo-analyzer- Content optimisation for AI search engines@houtini/brevo-mcp- Email marketing automation
Related
Model Context Protocol - Protocol specification
Google Knowledge Graph API - Official API docs
Claude Desktop - Primary MCP client
Status: Production ready, tested with Claude Desktop
Available Tools
2 toolslookup_knowledge_graph_entitiesA
Look up specific Knowledge Graph entities by their Machine IDs (MIDs). Use this when you already know the entity IDs from a previous search. MIDs look like /m/0dl567 or /g/11b6vwtjpg.
Inputs: ids (required), languages.
search_knowledge_graphB
Search Google Knowledge Graph for entities by name or topic. Returns structured information about real-world entities like people, places, organizations, and concepts from Google's public knowledge base.
Inputs: query (required), limit, types, languages.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The two tools have clearly distinct purposes: one searches by name/topic, the other retrieves by specific MID. There is no overlap in functionality, and an agent can easily choose the right tool based on whether it has an ID or a query.
Both tools follow a verb + 'knowledge_graph' pattern, with 'search_knowledge_graph' and 'lookup_knowledge_graph_entities'. The second includes an extra noun ('entities'), but the shared prefix and consistent style make them predictable and readable.
With only two tools, the server feels minimal but functional for its stated purpose of querying the Knowledge Graph. It falls into the borderline range where the count is thin but not unreasonable for a focused utility.
The two core operations for a knowledge graph API—search and lookup by ID—are covered. Missing features like batch lookup or relation traversal are minor gaps that can be worked around with repeated calls.
Maintenance
Related MCP Connectors
Machine-readable entity discovery with provenance, trust and verified source evidence.
Search Google straight from your AI agent. Web results, images, videos, news, products, scholarly ar
Web search, scraping, Google Trends and data lookups. Paid per call in USDC on Base via x402.
Google search, news, maps, webpages, cited answers, research and ChatGPT/Gemini answers for agents.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables querying DBpedia's structured knowledge graph using SPARQL and lookup tools, allowing AI agents to access Wikipedia-derived data.130 npm1MIT
- AlicenseAqualityBmaintenanceEnables MCP clients to perform live Google searches and retrieve structured SERP data including organic results, AI Overviews, People Also Ask, AI Mode answers, news, shopping, and short-video results via eight read-only tools.1068 npm14MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to search Google for web results, images, videos, news, products, scholarly articles, and patents, plus local business lookup with contact details and ratings, and full text extraction from any page, accepting up to 100 queries in a single call.MIT
- AlicenseAqualityCmaintenanceEnables users to search, rank, and compare Google Knowledge Graph entities, audit knowledge panel readiness with Wikidata connections, and generate JSON-LD schema for brands or people.42MIT