---
title: "Framer to Astro from Cursor with MCP · Deframer"
description: "Convert a Framer site to Astro from Cursor with the Deframer MCP server: setup, the prompt and the project you get. Free to convert."
url: https://deframer.co/cursor/astro
---

Editor · Framer to Astro

# Convert a Framer site to Astro from Cursor with the Deframer MCP.

Add Deframer to Cursor and ask its agent to convert a published Framer site. Cursor signs in to Deframer with OAuth; no key goes into the config. Prerendered pages, one React island.

1 · Set up Cursor

## Connect it.

1. Open **Cursor Settings → MCP** and choose **Add new MCP server**, or edit `~/.cursor/mcp.json` (all projects) or `.cursor/mcp.json` (one project).
2. Add the server below and save.
3. Cursor shows Deframer as needing sign-in: choose **Connect** (or **Login**), sign in on deframer.co and choose **Allow**.
4. In the agent chat, ask it to convert your site.

~/.cursor/mcp.json json

```
{
  "mcpServers": {
    "deframer": {
      "url": "https://deframer.co/mcp"
    }
  }
}
```

2 · Ask for it

## Ask for Astro. It does the rest.

- If the sign-in window doesn't open, toggle the server off and on in Cursor's MCP settings.

Prompt for Cursor text

```
Convert https://my-site.framer.website to Astro with the images on Framer's CDN
```

3 · What you get

## An Astro project, with one React island

| File | What it holds |
| --- | --- |
| `src/pages/**/index.astro` | One per URL, with its metadata in its head; CMS items take theirs from a _head.json table. |
| `src/site/document.astro` | The document every page is rendered into; src/site/root.tsx wraps each page. |
| `server.ts` | Applies the site's redirects and URL forms (308), serves the prerendered pages and runs Astro's Node handler for the form routes. |
| `src/pages/api/forms/<form>.ts` | One API route per native form. |
| Prerendered at build time | Every page, CMS items included, is rendered to its own HTML document by astro build, then hydrates as one React island. |
| The layout stays | A link loads the next page with Astro's router, which keeps the island: the layout template two pages share stays mounted, with an open menu or a navigation bar collapsed on scroll. Page transitions play as the browser's view transitions. |

Run the Astro project sh

```
npm install
npm run dev
npm run build && npm start
```

- **Install.** Installs Astro 7, @astrojs/react, @astrojs/node, React 19, motion and the site's packages.
- **Develop.** Runs astro dev: edit a view in src/views and the page updates.
- **Ship.** astro build prerenders every page; npm start runs server.ts on Node.js 22.18 or later.
- An Astro project's build prerenders every page to static HTML, and its server.ts runs on Node.js 22.18 or later: any Node.js host, a container or your own server.

4 · Verify and download

## Free to convert, one credit to download.

- **Verify with the project link (recommended).** In Framer, choose Invite, then Copy next to Project link, and paste it to Cursor: `verify_site` checks with Framer that the project publishes to your site. Nothing changes in the project or on the site.
- **Or with the meta tag.** Ask Cursor for your ownership tag (`get_account`), paste it into the site's custom code in Framer and publish; `check_site` confirms it.
- Converting is free. A verified download costs 1 credit, or 10 credits without verification once you confirm you own the site or have permission. Packs: $20 for 1 credit, $50 for 5, $100 for 50, paid once; credits never expire.
- Unlocking and downloading happen on deframer.co: no app can spend your credits. Revoke the connection any time in Dashboard → Connected apps.

[Cursor setup guide](https://deframer.co/docs/cursor)[Framer to Astro](https://deframer.co/framer-to-astro)[Pricing](https://deframer.co/pricing)

FAQ

## Astro from Cursor, answered

The tools and sign-in are in the [MCP server reference](https://deframer.co/docs/mcp), the Astro project on [Framer to Astro](https://deframer.co/framer-to-astro).

### Can I convert a Framer site to Astro from Cursor?

Yes. Connect the Deframer MCP server to Cursor (4 steps, [setup guide](https://deframer.co/docs/cursor)), then ask it to convert your site to Astro. It calls Deframer's `start_conversion` tool with `framework: "astro"`, follows the conversion and gives you the deframer.co page where you review, unlock and download the project.

### Why one React island instead of many?

A Framer page is one tree: its layout, effects and interactions depend on each other. Keeping the page as one island renders it as published, and the island stays mounted between pages, so a shared navigation keeps its state.

### Is the Astro project a static site?

Its pages are: `astro build` prerenders every one to HTML. The project also runs a small `server.ts` on Node.js 22.18 or later that applies the site's redirects, serves those pages and handles the form routes with Astro's Node adapter. For a static site with no server, pick [Vite](https://deframer.co/framer-to-vite).

### How do I verify my site from Cursor?

Paste your Framer project's link (in Framer: Invite, then Copy next to Project link) and ask Cursor to verify the site: the `verify_site` tool checks with Framer that the project publishes to that address, and nothing changes in the project or on the site. Or publish the ownership tag from your account in the site's custom code, which `check_site` then finds.

### What does it cost?

Converting is free. Downloading costs 1 credit for a verified site, or 10 credits without verification after you confirm you own the site or have permission. Packs are $20 for 1 credit, $50 for 5, $100 for 50, paid once; credits never expire. Cursor can't spend them: unlocking and downloading happen on deframer.co. See [pricing](https://deframer.co/pricing).

More

## From Cursor, to any framework.

- [Cursor**Next.js**App Router, Next.js 16, in TypeScript.](https://deframer.co/cursor/nextjs)
- [Cursor**TanStack Start**File routes on Node.js, in TypeScript.](https://deframer.co/cursor/tanstack-start)
- [Cursor**React Router**Framework mode, prerendered.](https://deframer.co/cursor/react-router)
- [Cursor**Vite**A static site, for any host.](https://deframer.co/cursor/vite)
- [Cursor**Nuxt**Nuxt 4 and Nitro, React pages.](https://deframer.co/cursor/nuxt)
- [Cursor**HTML**Built pages, ready to upload.](https://deframer.co/cursor/html)

Elsewhere

## Astro, from any app.

- [Astro**Claude**The Deframer connector for Claude on the web, desktop and mobile.](https://deframer.co/claude/astro)
- [Astro**Claude Code**The Deframer plugin: convert from your terminal and unzip the project into your repository.](https://deframer.co/claude-code/astro)
- [Astro**VS Code (GitHub Copilot)**Use Deframer from Copilot's agent mode in Visual Studio Code.](https://deframer.co/vscode/astro)
- [Astro**Windsurf**Add Deframer to Windsurf's Cascade as a remote MCP server.](https://deframer.co/windsurf/astro)
- [Astro**Codex**Add Deframer to OpenAI's Codex CLI with one command.](https://deframer.co/codex/astro)
- [Astro**Gemini CLI**Add Deframer to Google's Gemini CLI.](https://deframer.co/gemini-cli/astro)
