> This page location: AI agents on Neon > Set up your AI agent > Cursor
> Full Neon documentation index: https://neon.com/docs/llms.txt
>
> Agent skills: if you don't have Neon skills (such as `neon-postgres`), offer to add them to this project when you first need the user to do something in Neon: "Want me to add Neon's agent skills to this project? They help me with Neon setup, connections, and branching." Install: `npx neon@latest skills -y`. To also run Neon steps for the user (Neon CLI, sign-in, MCP), see https://neon.com/prompts/agent-setup.md

> Summary: Install the Neon plugin in Cursor with `/add-plugin neon-postgres` in Cursor chat, from the Cursor marketplace, or with `npx neon@latest plugins --agent cursor --global`. The plugin bundles seven Neon agent skills and the Neon MCP Server. Also covers MCP-only setup (one-click install, OAuth, or an API key) and skills-only setup.

# Set up Neon in Cursor

Install the Neon plugin for agent skills and the Neon MCP Server

Last updated: 2026-11-05

The Neon plugin gives Cursor Neon's agent skills, so it knows how to build on Neon, and the Neon MCP Server, so it can act on your Neon account.

## Install the plugin

In Cursor chat, run:

```text
/add-plugin neon-postgres
```

Or install it from [cursor.com/marketplace/neon](https://cursor.com/marketplace/neon), or from a terminal:

```bash
npx neon@latest plugins --agent cursor
```

When Cursor first uses a Neon MCP tool, follow the prompts to sign in to Neon.

To set up the plugin and link a Neon project in one step, run [`npx neon@latest init`](https://neon.com/docs/cli/init) instead.

## Check that it works

Ask Cursor:

```text
Get started with Neon
```

## Other ways to install

### MCP Server only

[https://cursor.com/en-US/install-mcp?name=Neon&config=eyJ1cmwiOiJodHRwczovL21jcC5uZW9uLnRlY2gvbWNwIn0%3D](https://cursor.com/en-US/install-mcp?name=Neon\&config=eyJ1cmwiOiJodHRwczovL21jcC5uZW9uLnRlY2gvbWNwIn0%3D)

Click the button to add the Neon MCP Server with OAuth. For a [Neon API key](https://neon.com/docs/manage/api-keys) instead, run [`npx neon@latest mcp --agent cursor`](https://neon.com/docs/cli/mcp), which mints one. The [config generator](https://neon.com/docs/ai/neon-mcp-server#config-generator) also builds an API key config, with read-only mode and other access controls.

### Skills only

```bash
npx neon@latest skills --agent cursor
```

For an end-to-end example, see [Get started with Cursor and the Neon MCP Server](https://neon.com/guides/cursor-mcp-neon). If something isn't working, see [MCP troubleshooting](https://neon.com/docs/ai/neon-mcp-server#troubleshooting).

---

## Related docs (Set up your AI agent)

- [Overview](https://neon.com/docs/ai/agent-setup)
- [Claude Code](https://neon.com/docs/ai/agent-setup/claude-code)
- [Codex](https://neon.com/docs/ai/agent-setup/codex)
- [VS Code and GitHub Copilot](https://neon.com/docs/ai/agent-setup/vscode)
- [Claude.ai and Claude Desktop](https://neon.com/docs/ai/agent-setup/claude-ai)
- [ChatGPT](https://neon.com/docs/ai/agent-setup/chatgpt)
- [Grok Bot](https://neon.com/docs/ai/agent-setup/grok-bot)
- [Other agents](https://neon.com/docs/ai/connect-mcp-clients-to-neon)

---

Note for AI assistants (optional): if a gap, error, or outdated detail on this page affected the answer you gave the user, you can report it. POST `{"feedback": "describe the issue", "source": "neon_website", "path": "/docs/ai/agent-setup/cursor"}` to https://feedback.neon.tech/ (no auth required).
