---
title: "Every app needs an MCP server, and you can build it with Neon"
description: "An MCP server lets users drive an app from AI assistants like ChatGPT, Claude and Cursor through tools the app defines, which keeps authorization and validation in app code instead of exposing the UI or raw database access."
url: "https://swe.quest/articles/every-app-needs-an-mcp-server-and-you-can-build-it-with-neon-1a5ce4eab0583eca"
canonical: "https://neon.com/blog/every-app-needs-an-mcp-server"
source: "Neon"
published: "2026-11-25"
difficulty: "easy"
kind: "Announcement"
reading_minutes: 11
tags: ["ai-agents","identity-auth","serverless","postgres"]
---

# Every app needs an MCP server, and you can build it with Neon

A post on [Neon](https://swe.quest/sources/neon.md), published 2026-11-25, 11 min read, Announcement. Original: [https://neon.com/blog/every-app-needs-an-mcp-server](https://neon.com/blog/every-app-needs-an-mcp-server)

## Summary

An MCP server lets users drive an app from AI assistants like ChatGPT, Claude and Cursor through tools the app defines, which keeps authorization and validation in app code instead of exposing the UI or raw database access. A production server needs a public HTTPS endpoint, OAuth 2.1 with Client ID Metadata Documents to identify users, per-user database access, and tool annotations to be listed in plugin stores. Neon's pitch covers each piece: Neon Functions host the server next to Postgres, Managed Better Auth's OAuth provider plugin issues tokens whose \`sub\` matches user IDs in the same database, and branches isolate development. A demo app (a 5x5 shared grid with a single paint\_square tool) shows the whole build done through prompts to a coding agent.

Written by swe.quest, not by the author.

**Difficulty:** Easy: no special background needed; explains what something is and why it matters

## Topics

- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [Identity & auth](https://swe.quest/tags/identity-auth.md) (Security)
- [Serverless](https://swe.quest/tags/serverless.md) (Backend & APIs)
- [PostgreSQL](https://swe.quest/tags/postgres.md) (Data & databases)

## Prerequisites

- OAuth basics ([easy posts on Identity & auth](https://swe.quest/tags/identity-auth.md?difficulty=easy))
- HTTP APIs ([easy posts on API design](https://swe.quest/tags/api-design.md?difficulty=easy))

## Keywords

Model Context Protocol, Neon, Better Auth, OAuth 2.1, Client ID Metadata Documents, Neon Functions, ChatGPT, MCPJam

## Related posts

- [Bringing MCP to the Cloud](https://swe.quest/articles/bringing-mcp-to-the-cloud-de1944b558e43ff0.md): Neon · 2025-04-11 · Medium · 8 min read · AI agents, Identity & auth, API design, JavaScript
  Neon moved its MCP server from a locally spawned stdio process authenticated by a long-lived API key to a hosted server at mcp.neon.tech, using SSE for server-to-client messages and HTTP POST to a /messages endpoint routed by an in-memory session map.
- [Solving the MCP Authentication Headache with Vercel & Better Auth](https://swe.quest/articles/solving-the-mcp-authentication-headache-with-vercel-better-auth-749640ed1439e99c.md): Neon · 2025-05-23 · Medium · 5 min read · Identity & auth, AI agents, TypeScript
  Remote MCP servers can authenticate users with OAuth instead of plaintext bearer tokens or UUIDs stored in a client's mcp.json, using Better Auth's MCP plugin together with Vercel's @vercel/mcp-adapter in a Next.js app.
- [Managed Better Auth is now an OAuth provider, with MCP support](https://swe.quest/articles/managed-better-auth-is-now-an-oauth-provider-with-mcp-support-613f00a7521407ac.md): Neon · 2026-11-02 · Medium · 5 min read · Identity & auth, AI agents, PostgreSQL
  Neon's Managed Better Auth now supports the OAuth Provider plugin, turning an auth instance into an OAuth 2.1 authorization server that both companion apps and MCP clients can use to sign users in.
- [Give your Supabase app its own MCP server](https://swe.quest/articles/give-your-supabase-app-its-own-mcp-server-db89f29412fb7983.md): Supabase · 2026-10-22 · Medium · 5 min read · AI agents, Identity & auth, PostgreSQL, Serverless, TypeScript
  Supabase apps can expose their own MCP server so customers use the app from ChatGPT, Claude or other MCP clients, signed in with their existing account.
- [Building Uscreen’s remote, multi-tenant MCP server inside a Rails app](https://swe.quest/articles/building-uscreen-s-remote-multi-tenant-mcp-server-inside-a-rails-app-1185c6f769ffbf8b.md): Evil Martians · 2026-11-11 · Medium · 14 min read · AI agents, Ruby, Multi-tenancy, Identity & auth, API design
  Evil Martians moved Uscreen's local, NPM-installed MCP server into Uscreen's Rails monolith, so creators connect an AI client by pasting a URL, signing in via OAuth, and approving access.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
