Lakebase Postgres is built on object storage, but 99.99999% of reads are served from high-performance local caches

Set up Neon in Codex

Install the Neon plugin in the Codex CLI or the Codex app

View as Markdown

The Neon plugin gives OpenAI Codex Neon's agent skills, so it knows how to build on Neon. It also adds the Neon MCP Server, so Codex can act on your Neon account. In Codex, the MCP Server appears as the Neon app.

Install the plugin

In the Codex CLI, run /plugins, open Neon, and choose Add to Codex. To install the Codex CLI first, see Codex CLI.

If Codex asks you to connect Neon, follow the prompts. To set up the plugin and link a Neon project in one step, run npx neon@latest init instead.

Check that it works

Start a new thread, or type @ to pick the Neon plugin, and ask:

Use Neon to create a new Postgres database for my project and help me connect to it.

Other ways to install

MCP Server only

npx add-mcp https://mcp.neon.tech/mcp -a codex

This adds a neon entry to .codex/config.toml (add -g to write ~/.codex/config.toml instead). Restart Codex. If Codex doesn't prompt you to sign in, run codex mcp login neon and click Authorize in the OAuth window.

Or run npx neon@latest mcp --agent codex. For read-only mode and other access controls, see the Neon MCP Server reference.

Skills only

npx neon@latest skills --agent codex

For a schema refactoring walkthrough, see Safe AI-powered schema refactoring with OpenAI Codex and Neon. If something isn't working, see MCP troubleshooting.

Need help?

Join our Discord Server to ask questions or see what others are doing with Neon. For paid plan support options, see Support.

Was this page helpful?
Edit on GitHub