Skip to content

xRadne/mcp-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MCP Example Server

This is a demonstration server implementing the Model Context Protocol (MCP). It provides a simple example of how to create an MCP server with custom tools.

Features

  • Built with Express.js and the MCP SDK
  • Implements Server-Sent Events (SSE) for real-time communication
  • Includes a demo greeting tool

Getting Started

Prerequisites

  • Node.js (latest LTS version recommended)
  • npm or yarn

Installation

  1. Clone the repository
  2. Install dependencies:
npm install

Running the Server

Start the server with:

npm start

The server will run on port 8080 by default.

Add the following to the mcp.json file

{
  "mcpServers": {
    "greeter-server-example": {
      "name": "MCP Greeter Server Example",
      "url": "http://localhost:8080/sse"
    }
  }
}

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors