Test Neon MCP Server in React Server Components

by PaulieScanlon

141 downloads
Not rated
GitHub

About

This repository uses Waku and React Server Components to demonstrate how to use Neon’s MCP Server with the Anthropic API and a custom chat interface. It is a demo project for developers exploring integration of Neon’s MCP server in a React Server Components environment.

Details

Author
PaulieScanlon
Downloads
141
Categories
Database

- Demonstrates Neon MCP Server with Anthropic API
- Uses Waku and React Server Components
- Custom chat interface with server and client components
- Requires only Neon and Anthropic API keys

Rename .env.example to .env and add your Neon API key and Anthropic API key. Install dependencies with npm install, then run the development server with npm run dev. The chat interface uses two components: <Chat /> (server‑only) and <ChatForm /> (client‑only).

Test Neon MCP Server in React Server Components

This repository uses waku and React Server Components to demonstrate how to use Neon's MCP Server with the Anthropic API and a custom chat interface.

You can read more about this experiment on my blog: How to use Neon's MCP Server with React Server Components

Getting Started

This repo requires a Neon API key and an Anthropic API key. Rename .env.example to .env and update with your API keys

Install Dependencies

npm install

Run Development Server

npm run dev

💬 Chat

There are two components required to test Neon's MCP server with the Anthropic API. They are detailed below.

Chat Component (server only)

The <Chat /> Component located in src/components/chat.tsx is responsible for handling the server-side requests.

ChatForm Component (client only)

The <ChatForm /> Component located in src/components/chat-form.txt is responsible for handling the textarea input, and sending the message to the server.

Helpful Links

- Neon MCP Server (Docs)
- Neon MCP Server (GitHub)
- Smithery - Neon Database (Quick Start)
- Smithery Typescript SDK (GitHub)

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.