Greeting MCP Server

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.

Category
Visit Server

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_user tool 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

  1. Install dependencies:

    npm install
    
  2. Run the development server:

    npm run dev
    
  3. Open your browser: Visit http://localhost:3000 to see the server info page

  4. Configure your MCP Client: Add this server to your MCP client configuration:

    {
        "mcpServers": {
            "greeting-server": {
                "url": "http://localhost:3000/api/llm/mcp"
            }
        }
    }
    
  5. Test the greeting tool: In your MCP client, you can now use the greet_user tool:

    • greet_user() - Get a general greeting
    • greet_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:

  1. Modify the greeting tool in src/app/api/llm/[transport]/route.ts
  2. Add new tools by adding more server.tool() calls
  3. Add authentication if needed using the experimental_withMcpAuth wrapper
  4. Update the UI in src/app/page.tsx to reflect your server's purpose

Learn More

Recommended Servers

playwright-mcp

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.

Official
Featured
TypeScript
Magic Component Platform (MCP)

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.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

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.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

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.

Official
Featured
TypeScript
Kagi MCP Server

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.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

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.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured