Simple MCP Server

anupamprataps/simple_mcp_server
0 starsCommunity

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

Provides basic tools for testing MCP functionality: echo, greet, and calculate.

README.md

Simple MCP Server

A basic Model Context Protocol (MCP) server for testing MCP functionality.

Features

This server provides three simple tools:

  1. echo - Echoes back any text you provide
  2. greet - Generates a greeting message with your name
  3. calculate - Performs basic arithmetic operations (add, subtract, multiply, divide)

Setup

  1. Install dependencies:
   npm install
  1. Run the server:
   npm start

Testing with Claude Desktop

To test this MCP server with Claude Desktop, add the following to your Claude Desktop configuration:

macOS Configuration

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

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

Windows Configuration

Add to %APPDATA%/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "simple-mcp-server": {
      "command": "node",
      "args": ["server.js"],
      "cwd": "C:\\path\\to\\your\\my_mcp"
    }
  }
}

Usage Examples

Once connected, you can test the tools:

  • Echo: "Use the echo tool to repeat 'Hello World'"
  • Greet: "Use the greet tool with the name 'Alice'"
  • Calculate: "Use the calculate tool to add 5 and 3"

Troubleshooting

  • Make sure Node.js is installed
  • Ensure the path in your Claude Desktop config is correct
  • Restart Claude Desktop after updating the configuration

Related MCP servers

Browse all →