
MCP Server
zmeyer44
public
next js mcp x402
一个使用 @vercel/mcp-adapter 的 Next.js 示例项目,用于集成 MCP 服务器。
Repository Info
0
Stars
0
Forks
0
Watchers
0
Issues
JavaScript
Language
MIT License
License
About This Server
一个使用 @vercel/mcp-adapter 的 Next.js 示例项目,用于集成 MCP 服务器。
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
# Example Next.js MCP Server **Uses `@vercel/mcp-adapter`** ## Usage This sample app uses the [Vercel MCP Adapter](https://www.npmjs.com/package/@vercel/mcp-adapter) that allows you to drop in an MCP server on a group of routes in any Next.js project. Update `app/[transport]/route.ts` with your tools, prompts, and resources following the [MCP TypeScript SDK documentation](https://github.com/modelcontextprotocol/typescript-sdk/tree/main?tab=readme-ov-file#server). ## Notes for running on Vercel - To use the SSE transport, requires a Redis attached to the project under `process.env.REDIS_URL` - Make sure you have [Fluid compute](https://vercel.com/docs/functions/fluid-compute) enabled for efficient execution - After enabling Fluid compute, open `app/route.ts` and adjust `maxDuration` to 800 if you using a Vercel Pro or Enterprise account - [Deploy the Next.js MCP template](https://vercel.com/templates/next.js/model-context-protocol-mcp-with-next-js) ## Sample Client `script/test-client.mjs` contains a sample client to try invocations. ```sh node scripts/test-client.mjs https://mcp-for-next-js.vercel.app ```
Quick Start
1
Clone the repository
git clone https://github.com/zmeyer44/next-js-mcp-x4022
Install dependencies
cd next-js-mcp-x402
npm install3
Follow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Ownerzmeyer44
Reponext-js-mcp-x402
Language
JavaScript
LicenseMIT License
Last fetched8/8/2025
Recommended MCP Servers
💬
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
integrationsdiscordchat
🔗
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
integrationsautomationsaas
🕷️
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
apifycrawlerdata
🌐
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
testingqabrowsers
⚡
Zapier MCP
A Zapier server that provides automation capabilities for various apps.
zapierautomation