Wikidata API

How to connect Wikidata to Claude

Add the Firecrawl connector to Claude once and it can call the Wikidata API and every other provider in Firecrawl Alexandria, with no Wikidata integration code.

Open Markdown

To connect Wikidata to Claude, add the Firecrawl connector to Claude, sign in on a Firecrawl team with Alexandria enabled, and ask for Wikidata data in plain language. The connection works in Claude on the web, Claude Desktop and Cowork, and you set it up once.

Claude uses Wikidata as an MCP tool through Firecrawl's hosted MCP server, so you don't install or host a separate MCP server for Wikidata.

Claude is Anthropic's AI assistant. Connectors give it tools from other services, and the Firecrawl connector adds web search, scraping and every data provider in Firecrawl Alexandria.

How do I connect Wikidata to Claude?

  1. Add the Firecrawl connector

    Open the Firecrawl connector in Claude's connector directory and select Connect to Claude. In Claude Desktop you can also go to Customize, then Connectors, and search for Firecrawl.

    The Firecrawl connector in Claude's directory with the Connect to Claude button
  2. Connect your Firecrawl account

    Claude opens Firecrawl in your browser. Sign in, choose a team with Alexandria enabled, and approve access. No account yet? You can create one for free in the same flow.

    Firecrawl's consent screen listing what claude.ai can do, including running Alexandria data providers
  3. Turn on Firecrawl in a chat

    In a new conversation, open the + menu, go to Connectors and switch on Firecrawl.

    Claude's + menu open on Connectors with the Firecrawl switch turned on
  4. Ask Claude for the data

    Ask in plain language and mention Wikidata or Firecrawl Alexandria. Claude finds the Wikidata capability that fits, checks its inputs and runs it. For example:

    Use Firecrawl to run Wikidata's Entity summary capability. Inspect the Alexandria inputs, ask for any missing required details, and return a small sample with sources.

What can Claude do with Wikidata?

Wikidata, the free CC0 knowledge graph behind Wikipedia: entity search, full-text search, entity detail (labels, sitelinks, official websites, external identifiers), typed statements, presence summaries with page views, lookup by external identifier (IMDb, VIAF, ISNI, ORCID, ...), and SPARQL through the anonymous MediaWiki/Wikibase Action API and the Wikidata Query Service.

Claude can run any of Wikidata's 7 capabilities through Alexandria. Each call is billed in Firecrawl credits on your Firecrawl team.

  • Entity summary: Lightweight presence summary for up to 50 Wikidata items or properties in one Action API `query` call (`prop=pageprops|entityterms|pageviews|info`): label, description and aliases (English), statement, external-identifier and sitelink counts, the page image file name, last revision and per-day page views on wikidata.org for the last N days. Ids that do not exist are listed in `missing_ids`; when none of the ids exists the call is `not_found`. Costs 5 Firecrawl credits per call.
  • Find by external id: Find the Wikidata item(s) carrying an external identifier: an IMDb id, VIAF cluster id, ISNI, ORCID, GND, Library of Congress id, GeoNames id, LEI, OpenCorporates id, Crunchbase organization, X/Instagram/GitHub username, LinkedIn company id or any other external-id property. Exact match through CirrusSearch `haswbstatement:`, then labels and descriptions of the matches and the property label through `wbgetentities`. Costs 5 Firecrawl credits per call.
  • Fulltext search: Full-text CirrusSearch over Wikidata items (main namespace) through the Action API `query&list=search`: matches labels, aliases and descriptions in every language and supports Wikidata search keywords such as `haswbstatement:P31=Q4830453` (instance of business), `inlabel:`, `incaption:`. Returns the total hit count, one page of hits (id, page id, plain-text title and description snippets) and `next_offset`. Costs 5 Firecrawl credits per call.
  • Get claims: Statements of one Wikidata entity through the Action API `wbgetclaims`, fully typed: for one property or for every property. Each statement carries its GUID, rank, main value (entity id, string, URL, external id, time, quantity, monolingual text or coordinate, with `somevalue`/`novalue` kept as such), qualifiers in Wikidata order and references, with the labels of every referenced property and item resolved in one map. Costs 5 Firecrawl credits per call.
  • Get entity: One Wikidata entity (item or property) through the Action API `wbgetentities`, shaped for entity-presence checks: labels, descriptions and aliases in the requested languages, sitelinks for the requested wikis (with the English Wikipedia URL surfaced), every `official website` (P856) by rank, `instance of` (P31) ids, all external identifiers (statements whose property datatype is `external-id`, with the property label resolved in one batched `wbgetentities` call per 50 properties), statement/identifier/sitelink counts and the list of property ids present so `get_claims` can fetch any statement group in full. Lookup by id, or by a Wikipedia article (`site` + `title`). Costs 5 Firecrawl credits per call.
  • Search entities: Search Wikidata items or properties by label and alias prefix through the Action API `wbsearchentities` (the typeahead the site itself uses). Returns one page of up to 50 matches with id, label, description, aliases, the matched term, concept URI and page URL, plus `next_offset` for the following page. Language is the term language searched and the display language; Wikidata falls back to other languages (`match.language` says which term matched). Costs 5 Firecrawl credits per call.
  • Sparql: Run a read-only SPARQL query against the Wikidata Query Service (`query.wikidata.org/sparql`, JSON results). Returns the projected variable names and the rows as `variable -> {type, value, datatype, language}` (unbound variables are absent from a row). WDQS enforces a 60 s query time limit; a timed-out or malformed query is reported as such. Costs 5 Firecrawl credits per call.

What should I ask Claude?

Name Wikidata or Firecrawl Alexandria in the prompt so Claude reaches for it. Each example opens in Claude with the prompt filled in.

Troubleshooting

Why doesn't Claude use Wikidata?

The connector has to be on in each conversation. Open the + menu, go to Connectors and check that Firecrawl is switched on, then ask again and name Wikidata or Firecrawl Alexandria in the prompt.

Claude says it can't reach the Firecrawl server. What should I do?

Open Customize, then Connectors, disconnect Firecrawl and connect it again. On a Team or Enterprise plan, an owner has to allow the connector before members can add it.

Why does Claude say Wikidata isn't available?

Alexandria needs a Firecrawl team with Alexandria enabled. Reconnect Firecrawl and pick that team on the consent screen.

Use Wikidata in other AI apps

The same Firecrawl account reaches Wikidata from other AI apps. Pick one for its setup steps:

Other data providers you can connect to Claude

Frequently Asked Questions

What is Firecrawl?

Firecrawl is the web data API to search, scrape and interact with the web at scale. It turns websites into clean, LLM-ready data for AI agents and apps. The Firecrawl connector brings those tools into Claude, along with every data provider in Firecrawl Alexandria.

What is Firecrawl Alexandria?

Firecrawl Alexandria is Firecrawl's library of 550+ data providers for AI agents, Wikidata among them. Each provider returns structured data through documented capabilities. Claude finds the capability that fits your question and calls it through the Firecrawl connector, so you don't write any integration code. Alexandria needs a Firecrawl account signed in on a team with Alexandria enabled, or an API key from such a team; keyless connections don't include it.

Is there a Wikidata MCP server for Claude?

Claude reaches Wikidata through Firecrawl's hosted MCP server, which serves Wikidata and every other Alexandria provider as tools. Add the Firecrawl connector once and you don't install or host a separate MCP server for Wikidata.

What does connecting Wikidata to Claude unlock?

Claude can run all 7 of Wikidata's capabilities, including Entity summary, Find by external id and Fulltext search, from any chat, with structured results it can sort, compare and summarize. In the same conversation, Claude can combine Wikidata with Firecrawl's web search and scraping and the other providers in Firecrawl Alexandria.

Do I need my own Wikidata account or API key to use it in Claude?

No. Claude calls Wikidata through Firecrawl Alexandria and each call is billed in Firecrawl credits, so you don't need a separate Wikidata account or API key.

How much does it cost to use Wikidata in Claude?

Each Wikidata call costs 5 Firecrawl credits. The capability list on this page shows each price and its unit. The credits come from the Firecrawl team you connect to Claude, and finding the right capability is free.

Can Claude use other providers besides Wikidata?

Yes. The same Firecrawl connector reaches every provider in Firecrawl Alexandria, along with Firecrawl's web search and scraping, so you connect once.

Can I use Wikidata in other AI apps?

Yes. Connect Firecrawl to ChatGPT, Cursor, Grok Bot, Muse signed in on a Firecrawl team with Alexandria enabled, or use the Firecrawl MCP server, CLI or API with an API key from that team, and the same Wikidata capabilities are available there. Keyless connections don't include Alexandria.

//
Get started
//
Ready to build?
Start getting web context for free and scale seamlessly as your project expands. No credit card needed.
Are you an AI agent? See setup options