# How to connect Justice Laws Website (Canada) to Cursor

> Connect Justice Laws Website (Canada) to Cursor with the Firecrawl MCP server. Use Justice Laws Website (Canada) as an MCP tool via Firecrawl Alexandria.

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

Cursor uses Justice Laws Website (Canada) as an MCP tool through Firecrawl's hosted MCP server, so you don't install or host a separate MCP server for Justice Laws Website (Canada).

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 Justice Laws Website (Canada) 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 Justice Laws Website (Canada) or Firecrawl Alexandria. The agent finds the Justice Laws Website (Canada) capability that fits and runs it. For example:

```text
Use Firecrawl to answer this: What does section 718 of the Criminal Code say?
```

## What can Cursor do with Justice Laws Website (Canada)?

Official consolidated federal Acts and regulations of Canada from the Department of Justice Laws Website (laws-lois.justice.gc.ca): full-text search, alphabetical browse, document structure and identifiers, point-in-time versions, page-by-page text, and the text of one section current or as of a date.

Cursor can run any of Justice Laws Website (Canada)'s 6 capabilities through Alexandria. Each call is billed in Firecrawl credits on your Firecrawl team.

- **Get legislation**: One consolidated federal act or regulation by code: title, citation, 'current to' and 'last amended' dates, enabling act (regulations), table of contents (parts, divisions, headings and schedules with their first section), regulations made under the act (current and repealed), and the stable full-text HTML, XML, PDF and previous-versions URLs. Costs 5 Firecrawl credits per call.
- **Get page**: One page of the current consolidated text of a federal act or regulation, as the site paginates it (page-N.html, a run of consecutive sections): headings, the section numbers on the page, the page text with labels, marginal notes and amendment citations, and links to the previous and next pages. Costs 5 Firecrawl credits per call.
- **Get provision**: Text of one section of a federal act or regulation, current or as of a date: the section text with its subsection and paragraph labels, marginal notes, amendment history citations, the version's date range, links to the previous and next versions, and the stable section, document and XML URLs. Costs 5 Firecrawl credits per call.
- **List legislation**: Browse the alphabetical index of consolidated federal Acts or regulations for one letter: title, code, citation, index URL, PDF URL and whether regulations are made under the act. Optional case-insensitive title filter. Costs 5 Firecrawl credits per call.
- **List versions**: Point-in-time index of a federal act or regulation: every published consolidation range (from, to) with the full-document HTML URL of that version, newest first, and, for an as_of date, the version in force on that date. Costs 5 Firecrawl credits per call.
- **Search legislation**: Full-text search of the current consolidated federal Acts and regulations of Canada on the Justice Laws Website. Returns section-level hits (title, citation, provision label, section number, code, URL and the matched text), 5 per page as the site serves them, with the total hit count. Costs 5 Firecrawl credits per call.

## What should I ask Cursor?

Name Justice Laws Website (Canada) or Firecrawl Alexandria in the prompt so Cursor reaches for it.

- [Use Firecrawl to answer this: What does section 718 of the Criminal Code say?](https://cursor.com/link/prompt?text=Use%20Firecrawl%20to%20answer%20this%3A%20What%20does%20section%20718%20of%20the%20Criminal%20Code%20say%3F)
- [Use Firecrawl to show section 4 of the Access to Information Act as it read on 2010-01-01](https://cursor.com/link/prompt?text=Use%20Firecrawl%20to%20show%20section%204%20of%20the%20Access%20to%20Information%20Act%20as%20it%20read%20on%202010-01-01)
- [Use Firecrawl to answer this: Which federal regulations are made under the Access to Information Act?](https://cursor.com/link/prompt?text=Use%20Firecrawl%20to%20answer%20this%3A%20Which%20federal%20regulations%20are%20made%20under%20the%20Access%20to%20Information%20Act%3F)
- [Use Firecrawl to search Canadian federal law for 'privacy commissioner delegation'](https://cursor.com/link/prompt?text=Use%20Firecrawl%20to%20search%20Canadian%20federal%20law%20for%20'privacy%20commissioner%20delegation')

### For agents

Start with the `laws-lois-justice-gc-ca` 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 Justice Laws Website (Canada)?

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 Justice Laws Website (Canada) in other AI apps

- [Justice Laws Website (Canada) in ChatGPT](https://alexandria.firecrawl.dev/providers/laws-lois-justice-gc-ca/connect/chatgpt)
- [Justice Laws Website (Canada) in Claude](https://alexandria.firecrawl.dev/providers/laws-lois-justice-gc-ca/connect/claude)
- [Justice Laws Website (Canada) in Grok Bot](https://alexandria.firecrawl.dev/providers/laws-lois-justice-gc-ca/connect/grok-bot)
- [Justice Laws Website (Canada) in Muse](https://alexandria.firecrawl.dev/providers/laws-lois-justice-gc-ca/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, Justice Laws Website (Canada) 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 Justice Laws Website (Canada) MCP server for Cursor?

Cursor reaches Justice Laws Website (Canada) through Firecrawl's hosted MCP server, which serves Justice Laws Website (Canada) 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 Justice Laws Website (Canada).

### What does connecting Justice Laws Website (Canada) to Cursor unlock?

Cursor can run all 6 of Justice Laws Website (Canada)'s capabilities, including Get legislation, Get page and Get provision, from any chat, with structured results it can sort, compare and summarize. For example, ask: "Use Firecrawl to answer this: What does section 718 of the Criminal Code say?" In the same conversation, Cursor can combine Justice Laws Website (Canada) with Firecrawl's web search and scraping and the other providers in Firecrawl Alexandria.

### Do I need my own Justice Laws Website (Canada) account or API key to use it in Cursor?

No. Cursor calls Justice Laws Website (Canada) through Firecrawl Alexandria and each call is billed in Firecrawl credits, so you don't need a separate Justice Laws Website (Canada) account or API key.

### How much does it cost to use Justice Laws Website (Canada) in Cursor?

Each Justice Laws Website (Canada) 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 Justice Laws Website (Canada)?

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 Justice Laws Website (Canada) 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 Justice Laws Website (Canada) capabilities are available there. Keyless connections don't include Alexandria.
