MCP-Server-Simple-Example

MCP-Server-Simple-Example

0

The MCP Express Server is a Model Context Protocol server built with Node.js, Express, and TypeScript. It features MCP tools, resources, and an Express HTTP server for testing and debugging. It provides both Stdio and HTTP server capabilities for seamless integration and testing.

MCP Express Server

A Model Context Protocol (MCP) server implemented with Node.js, Express, and TypeScript.

Features

  • Implements MCP tools, resources, and prompts
  • Supports both StdioServerTransport for command-line usage
  • Express HTTP server for testing and debugging

Available MCP Capabilities

Tools

  • Echoes back a message
  • Returns the current time in ISO format

Resources

  • A simple example resource

Prompts

  • A simple greeting prompt template

Running the Server

  • Using StdioServerTransport for MCP Clients
  • Running the Express Server for Testing

Testing API Endpoints

  • Health check
  • Server info

Development

Run in development mode