Neon Auth MCP OAuth
About
PoC of an MCP server in a Next.js app with Neon Auth and custom OAuth flow for MCP.
Details
- Author
- andrelandgraf
- Downloads
- 353
- Categories
- Developer Tools
Jump to
- Custom MCP OAuth flow implementation
- Built with Next.js, Neon, Upstash Redis, and Neon Auth
- Deployable to Vercel with Upstash Redis integration
- Debugging support via MCP Inspector
- Includes a development server for local testing
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
Neon Auth MCP OAuthCommand (node, npx, python, etc.)Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
Add the provided MCP configuration to Cursor, Windsurf, Claude Desktop, or any MCP client. For local development, replace the URL in the config with http://localhost:3000/api/v1/mcp and run npm run dev.
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"neon auth mcp oauth": {
"echo": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://neon-auth-mcp-oauth-6zf3o859s-andrelandgraf.vercel.app"
]
}
}
}
}
McpServers
{
"echo": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://neon-auth-mcp-oauth-6zf3o859s-andrelandgraf.vercel.app"
]
}
}
Neon Auth MCP OAuth
PoC implementation of a custom MCP OAuth flow with Next.js, Neon, Upstash Redis, and Neon Auth.
You can try it out by adding the following MCP config to Cursor, Windsurf, Claude Desktop, etc.:
{
"mcpServers": {
"echo": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://neon-auth-mcp-oauth.vercel.app/api/v1/mcp"
]
}
}
}
Replace the example URL with http://localhost:3000/api/v1/mcp to try our the development server.
Note: Run rm -rf ~/.mcp-auth if you are running into issues. MCP auth is still flaky in my experience and resetting the stored auth state of the mcp-remote package helps.
Setup
1. Set up Neon and Neon Auth.
2. Deploy to Vercel and set up Redis Upstash via the Vercel Upstash Integration.
Environment
Create a .env file. Review ./lib/config.ts for a full list of required .env variables.
Development
- Run the MCP Inspector for debugging:
npm run playground
- Paste http://localhost:3000/api/v1/mcp in the MCP Inspector MCP Server URL field.
- Run the application
npm run dev
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.





