Wikidata API

How to connect Wikidata to Cursor

Add the Firecrawl MCP server to Cursor 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 Cursor, add the Firecrawl MCP server to Cursor, sign in on a Firecrawl team with Alexandria enabled, and ask for Wikidata data in plain language. The connection works in Cursor's agent and chat, and you set it up once.

Cursor 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.

Cursor is an AI code editor. Its agent uses MCP servers for outside tools, and the Firecrawl MCP server adds web search, scraping and every data provider in Firecrawl Alexandria.

How do I connect Wikidata to Cursor?

  1. Install the Firecrawl MCP server

    Open the install dialog in Cursor, check that the URL is Firecrawl's hosted server, then select Install.

    Cursor's Install MCP server dialog with the Firecrawl hosted server URL
  2. Connect your Firecrawl account

    Use the server's sign-in option in Cursor's MCP settings. Firecrawl opens in your browser: sign in, choose a team with Alexandria enabled, and approve access. A green dot next to Firecrawl means it's connected.

    Cursor's MCP list showing Firecrawl connected with its tools enabled
  3. Ask Cursor's agent for the data

    In the agent chat, ask in plain language and mention Wikidata or Firecrawl Alexandria. The agent finds the Wikidata capability that fits 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 Cursor 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.

Cursor 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 Cursor?

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

Troubleshooting

Why can't Cursor find Wikidata?

If Firecrawl's tools in Cursor stop at search, scrape and parse, the connection is keyless and doesn't include Alexandria. Finish the sign-in from Cursor's MCP settings, or add an API key from a team with Alexandria enabled.

Firecrawl shows a red dot in Cursor. What should I do?

Open Cursor's MCP settings, sign in to Firecrawl again, and restart the agent chat so it loads the tools.

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 Cursor

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 MCP server brings those tools into Cursor, 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. Cursor finds the capability that fits your question and calls it through the Firecrawl MCP server, 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 Cursor?

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

What does connecting Wikidata to Cursor unlock?

Cursor 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, Cursor 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 Cursor?

No. Cursor 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 Cursor?

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 Cursor, and finding the right capability is free.

Can Cursor use other providers besides Wikidata?

Yes. The same Firecrawl MCP server 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, Claude, 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