# How to connect GOV.UK to Cursor

> Connect GOV.UK to Cursor with the Firecrawl MCP server. Use GOV.UK as an MCP tool in Cursor via Firecrawl Alexandria, with setup steps and example prompts.

To connect GOV.UK to Cursor, add the Firecrawl MCP server to Cursor, sign in on a Firecrawl team with Alexandria enabled, and ask for GOV.UK data in plain language. The connection works in Cursor's agent and chat, and you set it up once.

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

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 GOV.UK to Cursor?

### 1. Install the Firecrawl MCP server

Open the [install dialog in Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=firecrawl&config=eyJ1cmwiOiJodHRwczovL21jcC5maXJlY3Jhd2wuZGV2L3YyL21jcC1vYXV0aCJ9), check that the URL is Firecrawl's hosted server, then select Install.

[Add to Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=firecrawl&config=eyJ1cmwiOiJodHRwczovL21jcC5maXJlY3Jhd2wuZGV2L3YyL21jcC1vYXV0aCJ9)

![Cursor's Install MCP server dialog with the Firecrawl hosted server URL](https://www.firecrawl.dev/images/blog/using-firecrawl-mcp-in-cursor/cursor-install-firecrawl-mcp-server.webp)

### 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](https://www.firecrawl.dev/images/blog/using-firecrawl-mcp-in-cursor/cursor-firecrawl-mcp-connected.webp)

### 3. Ask Cursor's agent for the data

In the agent chat, ask in plain language and mention GOV.UK or Firecrawl Alexandria. The agent finds the GOV.UK capability that fits and runs it. For example:

```text
Use Firecrawl to run GOV.UK's Get manual capability. Inspect the Alexandria inputs, ask for any missing required details, and return a small sample with sources.
```

## What can Cursor do with GOV.UK?

GOV.UK (www.gov.uk), the UK government's website: site-wide search with document type, supergroup, organisation, person, location, topic and date filters (or a pasted GOV.UK finder URL), any page as Markdown with its dates, change notes, organisations, guide parts, attachments, collection documents, manual sections and travel advice status, HMRC internal manuals and other manuals with their sections and update notes, the OPSS product safety alerts, reports and recalls, and the list of government organisations. From the public GOV.UK Search, Content and Organisations APIs; content under the Open Government Licence v3.0.

Cursor can run any of GOV.UK's 5 capabilities through Alexandria. Each call is billed in Firecrawl credits on your Firecrawl team.

- **Get manual**: One GOV.UK manual from the Content API (GET /api/content/{manual}): HMRC internal manuals (/hmrc-internal-manuals/<slug>, e.g. inheritance-tax-manual, capital-gains-manual) and other manuals (/guidance/<slug>, e.g. tax-agents-handbook, immigration-rules). Returns title, summary, dates, organisations, body (for guidance manuals), the section groups with every child section (section id, title, path) and the manual's update notes (the /updates page: section, change note, date), newest first, paged through next_cursor. Accepts the manual, any of its section paths or its /updates URL. Costs 5 Firecrawl credits per call.
- **Get page**: One www.gov.uk page from the GOV.UK Content API (GET /api/content/{path}): title, description, document type, schema, first published and last updated dates, the latest change note and change history, withdrawal notice, organisations, the full body as clean Markdown (tables, lists, links, collapsed details sections and transcripts included, since the API serves the complete HTML), its links, attachments (title, URL, content type, size, pages; consultation documents and final outcome PDFs marked), consultation dates, specialist metadata, product information rows for product safety notices, a collection's groups and documents, a manual section's breadcrumbs and child sections, and foreign travel advice alert status and latest update. Multi-part guides and travel advice list their parts and return one. Redirected paths are followed; removed and unknown pages are not_found. Costs 5 Firecrawl credits per call.
- **List organisations**: Every organisation on GOV.UK (ministerial departments, agencies, public bodies, courts, including closed ones) from the GOV.UK Organisations API (GET /api/organisations?page=N), 20 per page: slug, title, acronym, format, status (live, closed, exempt, ...), closed status, URL, content id, updated date and the slugs of parent, child and superseding organisations. Page through with next_cursor. Costs 5 Firecrawl credits per call.
- **List product safety alerts**: Product safety alerts, reports and recalls from the Office for Product Safety and Standards (OPSS) on GOV.UK, newest first: the GOV.UK Search API filtered to document type product_safety_alert_report_recall (the finder at www.gov.uk/product-safety-alerts-reports-recalls). Each notice: title, reference (the PSD notification number such as 2609-0213, or PSA9, from the title), path, url, description, alert type (product-recall, product-safety-report, product-safety-alert), risk level (serious, high, medium, low, not-provided), product category, corrective measures, the alert date and the publication timestamp. Filter by words, alert type, risk level, category and alert date range. get_page on a path returns the full notice with its product information table (brand, model, barcodes, batch numbers), hazard, corrective action and the product image PDF. Costs 5 Firecrawl credits per call.
- **Search**: Full-text search over www.gov.uk with the official GOV.UK Search API (GET /api/search.json): guidance, consultations and their outcomes, publications, news, speeches, statistics, product safety notices and every other GOV.UK format. Filters: document type (content_store_document_type), content purpose supergroup (the finder groupings), organisation, person, world location, topical event and topic taxon slugs, and a public timestamp range. Accepts a pasted GOV.UK finder URL (search/all, news-and-communications, guidance-and-regulation, policy-papers-and-consultations, research-and-statistics, transparency-and-freedom-of-information-releases, services, .atom feeds too) and maps its query to the same filters. Order by relevance (needs q), newest, oldest or most viewed. Each result: title, path, url, description, document type, public timestamp and organisations. Offset pagination through next_cursor replaces finder paging and scrolling. For monitoring, order newest with a from date lists everything changed since then. Costs 5 Firecrawl credits per call.

## What should I ask Cursor?

Name GOV.UK or Firecrawl Alexandria in the prompt so Cursor reaches for it.

- [Use Firecrawl to run GOV.UK's Get manual capability. Inspect the Alexandria inputs, ask for any missing required details, and return a small sample with sources.](https://cursor.com/link/prompt?text=Use%20Firecrawl%20to%20run%20GOV.UK's%20Get%20manual%20capability.%20Inspect%20the%20Alexandria%20inputs%2C%20ask%20for%20any%20missing%20required%20details%2C%20and%20return%20a%20small%20sample%20with%20sources.)
- [Use Firecrawl to run GOV.UK's Get page capability. Inspect the Alexandria inputs, ask for any missing required details, and return a small sample with sources.](https://cursor.com/link/prompt?text=Use%20Firecrawl%20to%20run%20GOV.UK's%20Get%20page%20capability.%20Inspect%20the%20Alexandria%20inputs%2C%20ask%20for%20any%20missing%20required%20details%2C%20and%20return%20a%20small%20sample%20with%20sources.)
- [Use Firecrawl to run GOV.UK's List organisations capability. Inspect the Alexandria inputs, ask for any missing required details, and return a small sample with sources.](https://cursor.com/link/prompt?text=Use%20Firecrawl%20to%20run%20GOV.UK's%20List%20organisations%20capability.%20Inspect%20the%20Alexandria%20inputs%2C%20ask%20for%20any%20missing%20required%20details%2C%20and%20return%20a%20small%20sample%20with%20sources.)
- [Use Firecrawl to run GOV.UK's List product safety alerts capability. Inspect the Alexandria inputs, ask for any missing required details, and return a small sample with sources.](https://cursor.com/link/prompt?text=Use%20Firecrawl%20to%20run%20GOV.UK's%20List%20product%20safety%20alerts%20capability.%20Inspect%20the%20Alexandria%20inputs%2C%20ask%20for%20any%20missing%20required%20details%2C%20and%20return%20a%20small%20sample%20with%20sources.)

### For agents

Start with the `gov-uk` provider. Use Firecrawl Alexandria first. With MCP, use firecrawl_search with sources: ["alexandria"] to discover relevant tools, firecrawl_find_tools to inspect the selected capability contracts, then firecrawl_scrape in alexandria mode to retrieve records. With the CLI, use firecrawl search alexandria, firecrawl list, then firecrawl scrape for the selected provider/capability. Follow the live tool schema and returned contract; never invent provider IDs or inputs. Ask for missing required details before execution, respect access and pricing, and inspect each result for errors. Cite retrieved records, distinguish missing data from failures, and explain gaps. If no suitable Alexandria capability exists, say so before using web sources. Do not treat a tool listing as retrieved data.

## Troubleshooting

### Why can't Cursor find GOV.UK?

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 GOV.UK in other AI apps

- [GOV.UK in ChatGPT](https://alexandria.firecrawl.dev/providers/gov-uk/connect/chatgpt)
- [GOV.UK in Claude](https://alexandria.firecrawl.dev/providers/gov-uk/connect/claude)
- [GOV.UK in Grok Bot](https://alexandria.firecrawl.dev/providers/gov-uk/connect/grok-bot)
- [GOV.UK in Muse](https://alexandria.firecrawl.dev/providers/gov-uk/connect/muse)

### Other data providers you can connect to Cursor

- [How to connect France public medicines database (BDPM) to Cursor](https://alexandria.firecrawl.dev/providers/base-donnees-publique-medicaments-gouv-fr/connect/cursor)
- [How to connect ClinicalTrials.gov to Cursor](https://alexandria.firecrawl.dev/providers/clinicaltrials-gov/connect/cursor)
- [How to connect CMS Medicare Drug Prices: Negotiated Prices and Part B ASP Payment Limits to Cursor](https://alexandria.firecrawl.dev/providers/cms-gov/connect/cursor)
- [How to connect CDC PLACES local health estimates (data.cdc.gov) to Cursor](https://alexandria.firecrawl.dev/providers/data-cdc-gov/connect/cursor)

Full setup guide: [Firecrawl in Cursor](https://www.firecrawl.dev/integrations/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, GOV.UK 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 GOV.UK MCP server for Cursor?

Cursor reaches GOV.UK through Firecrawl's hosted MCP server, which serves GOV.UK 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 GOV.UK.

### What does connecting GOV.UK to Cursor unlock?

Cursor can run all 5 of GOV.UK's capabilities, including Get manual, Get page and List organisations, from any chat, with structured results it can sort, compare and summarize. In the same conversation, Cursor can combine GOV.UK with Firecrawl's web search and scraping and the other providers in Firecrawl Alexandria.

### Do I need my own GOV.UK account or API key to use it in Cursor?

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

### How much does it cost to use GOV.UK in Cursor?

Each GOV.UK 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 GOV.UK?

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 GOV.UK 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 GOV.UK capabilities are available there. Keyless connections don't include Alexandria.
