Greeting MCP Server
A simple MCP server built with Next.js that provides a greet_user tool to return friendly greetings, either general or personalized.
README
Greeting MCP Server
A simple Model Context Protocol (MCP) server built with Next.js that provides a greeting tool. This project serves as a clean foundation for building custom MCP servers.
Features
- Simple Greeting Tool: Provides a
greet_usertool that responds with friendly greetings - MCP Server Integration: Built using the Vercel MCP adapter for seamless integration
- No Authentication Required: Simple setup without API keys or user management
- TypeScript Support: Fully typed with TypeScript for better development experience
Getting Started
-
Install dependencies:
npm install -
Run the development server:
npm run dev -
Open your browser: Visit http://localhost:3000 to see the server info page
-
Configure your MCP Client: Add this server to your MCP client configuration:
{ "mcpServers": { "greeting-server": { "url": "http://localhost:3000/api/llm/mcp" } } } -
Test the greeting tool: In your MCP client, you can now use the
greet_usertool:greet_user()- Get a general greetinggreet_user(name: "Alice")- Get a personalized greeting
MCP Tool Reference
greet_user
Greets the user with a friendly message.
Parameters:
name(optional): The name of the user to greet
Examples:
- Without name: Returns "Hello! How are you doing today?"
- With name: Returns "Hello, [name]! Nice to meet you!"
Project Structure
src/
├── app/
│ ├── api/llm/[transport]/route.ts # MCP server endpoint
│ ├── layout.tsx # App layout
│ └── page.tsx # Info page
├── components/ui/ # Basic UI components
└── lib/utils.ts # Utility functions
Customization
This project is designed to be a clean starting point for your own MCP server. To customize:
- Modify the greeting tool in
src/app/api/llm/[transport]/route.ts - Add new tools by adding more
server.tool()calls - Add authentication if needed using the
experimental_withMcpAuthwrapper - Update the UI in
src/app/page.tsxto reflect your server's purpose
Learn More
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.