Neon Auth MCP OAuth

by andrelandgraf

353 downloads
Not rated
GitHub Website

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

- 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:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Neon Auth MCP OAuth
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. 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
No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.