# How to connect Mass.gov to Cursor

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

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

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

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 Mass.gov 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 Mass.gov or Firecrawl Alexandria. The agent finds the Mass.gov capability that fits and runs it. For example:

```text
Use Firecrawl to answer this: Where do I apply for SNAP in Massachusetts and what is the DTA phone number?
```

## What can Cursor do with Mass.gov?

Massachusetts state government (mass.gov) services, how-to application pages, agencies, offices and forms from the site's public Drupal JSON:API: application destinations, contacts, steps, eligibility text and office addresses for SNAP, MassHealth, TAFDC, heating assistance, WIC, child care and every other program the site documents.

Cursor can run any of Mass.gov's 6 capabilities through Alexandria. Each call is billed in Firecrawl credits on your Firecrawl team.

- **Documents**: Search mass.gov documents (forms, applications, notices) by name substring; returns media ids, page and download URLs; offset pagination. Costs 5 Firecrawl credits per call.
- **How to**: One mass.gov how-to page (how to apply for or do something): application methods (online, phone, mail, fax, in person) with their destination links, primary application links, next steps, decision time, eligibility/fees text, contacts, forms, owning agency and parent topic. Costs 5 Firecrawl credits per call.
- **Locations**: Offices (location pages) of a mass.gov organization by its node id, with the primary contact's street address, coordinates and phone numbers; offset pagination. Costs 5 Firecrawl credits per call.
- **Organization**: One mass.gov organization (agency) page: description, acronym, application/log-in links, social links, primary contact with phone/fax/address, parent agency, and the agency's how-to pages (first 50 by title). Costs 5 Firecrawl credits per call.
- **Search pages**: Search mass.gov pages of one content type by title (case-insensitive substring) through the site's Drupal JSON:API; returns node ids, canonical URLs and the page lede, with offset pagination. Costs 5 Firecrawl credits per call.
- **Service**: One mass.gov service page (program overview): lede and body, key-action link groups (apply, screener, log in), rich-text sections, contacts with phone/fax/address, owning agency and parent topic. Costs 5 Firecrawl credits per call.

## What should I ask Cursor?

Name Mass.gov or Firecrawl Alexandria in the prompt so Cursor reaches for it.

- [Use Firecrawl to answer this: Where do I apply for SNAP in Massachusetts and what is the DTA phone number?](https://cursor.com/link/prompt?text=Use%20Firecrawl%20to%20answer%20this%3A%20Where%20do%20I%20apply%20for%20SNAP%20in%20Massachusetts%20and%20what%20is%20the%20DTA%20phone%20number%3F)
- [Use Firecrawl to list the DTA offices with addresses near Worcester.](https://cursor.com/link/prompt?text=Use%20Firecrawl%20to%20list%20the%20DTA%20offices%20with%20addresses%20near%20Worcester.)
- [Use Firecrawl to answer this: How do I apply for MassHealth and what are the next steps after applying?](https://cursor.com/link/prompt?text=Use%20Firecrawl%20to%20answer%20this%3A%20How%20do%20I%20apply%20for%20MassHealth%20and%20what%20are%20the%20next%20steps%20after%20applying%3F)
- [Use Firecrawl to run Mass.gov's Documents 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%20Mass.gov's%20Documents%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 `mass-gov` 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 Mass.gov?

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 Mass.gov in other AI apps

- [Mass.gov in ChatGPT](https://alexandria.firecrawl.dev/providers/mass-gov/connect/chatgpt)
- [Mass.gov in Claude](https://alexandria.firecrawl.dev/providers/mass-gov/connect/claude)
- [Mass.gov in Grok Bot](https://alexandria.firecrawl.dev/providers/mass-gov/connect/grok-bot)
- [Mass.gov in Muse](https://alexandria.firecrawl.dev/providers/mass-gov/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, Mass.gov 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 Mass.gov MCP server for Cursor?

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

### What does connecting Mass.gov to Cursor unlock?

Cursor can run all 6 of Mass.gov's capabilities, including Documents, How to and Locations, from any chat, with structured results it can sort, compare and summarize. For example, ask: "Use Firecrawl to answer this: Where do I apply for SNAP in Massachusetts and what is the DTA phone number?" In the same conversation, Cursor can combine Mass.gov with Firecrawl's web search and scraping and the other providers in Firecrawl Alexandria.

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

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

### How much does it cost to use Mass.gov in Cursor?

Each Mass.gov 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 Mass.gov?

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