mcp-server

srafi26/mcp-server

3.2

If you are the rightful owner of mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

A Model Context Protocol (MCP) server implementation that provides basic tools and utilities.

Tools
  1. echo

    Echo back the input text

  2. uppercase

    Convert text to uppercase

  3. calculate

    Perform basic mathematical calculations

MCP Server

A Model Context Protocol (MCP) server implementation that provides basic tools and utilities.

Features

This MCP server provides the following tools:

  • echo: Echo back the input text
  • uppercase: Convert text to uppercase
  • calculate: Perform basic mathematical calculations (add, subtract, multiply, divide)

Installation

  1. Install dependencies:

    npm install
    
  2. Build the server:

    npm run build
    

Usage

Development

Run the server in development mode:

npm run dev

Production

Build and run the server:

npm run build
npm start

Configuration

To use this MCP server with Claude Desktop or other MCP clients, add the following to your MCP configuration:

{
  "mcpServers": {
    "mcp-server": {
      "command": "node",
      "args": ["/path/to/your/mcp-server/dist/index.js"]
    }
  }
}

Examples

Echo Tool

{
  "name": "echo",
  "arguments": {
    "message": "Hello, World!"
  }
}

Uppercase Tool

{
  "name": "uppercase",
  "arguments": {
    "text": "hello world"
  }
}

Calculate Tool

{
  "name": "calculate",
  "arguments": {
    "operation": "add",
    "a": 5,
    "b": 3
  }
}

License

MIT