Company
Date Published
Author
Shridhar
Deshmukh
Word count
1605
Language
English
Hacker News points
None

Summary

The Neon MCP server is a remote version of the local MCP server that allows large language models (LLMs) and AI agents to interact with external systems in a structured way. The remote server uses Server-Sent Events (SSE) for communication and integrates OAuth 2.1 for authentication. The implementation involves using an Express.js web server to handle HTTP connections for SSE and OAuth, and implementing the OAuth flow with Neon as the upstream provider. The server also supports both stdio and SSE operations, and refactors the code to introduce a pattern where each handler function receives a neonClient parameter. The OAuth 2.1 authorization flow allows users to connect and authorize the MCP server to act on their behalf without manually sharing API keys. The remote MCP server is live and can be installed on Cursor or Windsurf, but it's still at an early stage with known issues such as dependency on Node.js and refresh tokens.