MCP.so
Sign In
Servers

MCP Server

@semo94

Overview

What is MCP Server?

MCP Server is a Node.js/TypeScript implementation of the Model Context Protocol (MCP). It provides tools, resources, and prompts that standardize how AI applications provide context to large language models (LLMs) and enable seamless communication with data sources and tools. It is intended for developers building AI-powered applications.

How to use MCP Server?

To use MCP Server, ensure Node.js 18+ and npm are installed. Clone the repository, run npm install, then npm run build. Start the server with npm start for stdio transport or npm start -- --http for HTTP/SSE transport. The default HTTP port is 3000; change it by setting the PORT environment variable (e.g., PORT=8080 npm start -- --http).

Key features of MCP Server

  • Calculator tool with add, subtract, multiply, divide operations
  • Server information resource exposing system metrics
  • Echo resource to reflect back any message
  • Greeting prompt template with formal/casual options
  • Code review prompt template for code improvement suggestions
  • Support for both stdio and HTTP/SSE transport methods
  • Comprehensive logging system

Use cases of MCP Server

  • Performing arithmetic calculations through an LLM interface
  • Retrieving live server diagnostics (uptime, memory, Node.js version) for AI-driven monitoring
  • Echoing user-provided messages for testing or debugging LLM interactions
  • Generating personalized greetings from a prompt within AI applications
  • Automating code reviews by supplying code and receiving structured feedback from an LLM

FAQ from MCP Server

What transport methods does MCP Server support?

It supports stdio (for integration with MCP clients) and HTTP/SSE (for web-based usage). The HTTP mode is enabled by passing the --http flag.

How can I change the HTTP port?

Set the PORT environment variable before starting the server. For example: PORT=8080 npm start -- --http.

What are the prerequisites to run MCP Server?

Node.js version 18 or later and npm are required.

Does MCP Server run in development mode with auto‑reloading?

Yes, use npm run dev for stdio or npm run dev -- --http for HTTP/SSE transport in development mode.

What tools and resources are available?

The server provides a calculate tool (with operation, a, b parameters), a server://info resource, an echo://{message} resource, and two prompt templates: greeting and code-review.

More from Other