JUHE API Marketplace
shaleen-wonder-ent avatar
MCP Server

Simple MCP Server

A demonstration server implementing the Model Context Protocol (MCP) that provides three basic tools: echo, calculator, and current time functionality.

0
GitHub Stars
11/16/2025
Last Updated
MCP Server Configuration
1{
2 "name": "simple-mcp-server",
3 "command": "node",
4 "args": [
5 "/absolute/path/to/your/project/build/index.js"
6 ]
7}
JSON7 lines
  1. Home
  2. MCP Servers
  3. simple-mcp-server

README Documentation

Simple MCP Server

A simple Model Context Protocol (MCP) server example that demonstrates basic MCP functionality.

What it does

This MCP server provides three basic tools:

  1. echo - Echoes back a message you provide
  2. calculator - Performs basic mathematical operations (add, subtract, multiply, divide)
  3. current_time - Returns the current date and time

Prerequisites

  • Node.js 16 or higher
  • npm

Installation

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

Building

Build the TypeScript code:

npm run build

Running the Server

Start the server in development mode:

npm run dev

Or run the built version:

npm start

Testing with Claude Desktop

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

Windows

Location: %APPDATA%\Claude\claude_desktop_config.json

macOS/Linux

Location: ~/Library/Application Support/Claude/claude_desktop_config.json

Configuration:

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

Replace /absolute/path/to/your/project/ with the actual path to your project directory.

Project Structure

├── src/
│   └── index.ts          # Main server implementation
├── build/                # Compiled JavaScript (generated)
├── .github/
│   └── copilot-instructions.md  # Copilot instructions
├── .vscode/
│   └── mcp.json          # VS Code MCP configuration
├── package.json          # Project configuration
├── tsconfig.json         # TypeScript configuration
└── README.md            # This file

Tools Available

echo

  • Description: Echo back the provided message
  • Parameters:
    • message (string): The message to echo back

calculator

  • Description: Perform basic mathematical operations
  • Parameters:
    • operation (enum): One of 'add', 'subtract', 'multiply', 'divide'
    • a (number): The first number
    • b (number): The second number

current_time

  • Description: Get the current date and time
  • Parameters: None

Example Usage

Once connected to an MCP client like Claude Desktop, you can use commands like:

  • "Echo back the message 'Hello World'"
  • "Calculate 15 plus 25"
  • "What's the current time?"

Development

This project is set up with:

  • TypeScript for type safety
  • Zod for runtime type validation
  • MCP SDK for protocol compliance
  • ES modules support

Quick Install

Quick Actions

View on GitHubView All Servers

Key Features

Model Context Protocol
Secure Communication
Real-time Updates
Open Source

Boost your projects with Wisdom Gate LLM API

Supporting GPT-5, Claude-4, DeepSeek v3, Gemini and more.

Enjoy a free trial and save 20%+ compared to official pricing.

Learn More
JUHE API Marketplace

Accelerate development, innovate faster, and transform your business with our comprehensive API ecosystem.

JUHE API VS

  • vs. RapidAPI
  • vs. API Layer
  • API Platforms 2025
  • API Marketplaces 2025
  • Best Alternatives to RapidAPI

For Developers

  • Console
  • Collections
  • Documentation
  • MCP Servers
  • Free APIs
  • Temp Mail Demo

Product

  • Browse APIs
  • Suggest an API
  • Wisdom Gate LLM
  • Global SMS Messaging
  • Temp Mail API

Company

  • What's New
  • Welcome
  • About Us
  • Contact Support
  • Terms of Service
  • Privacy Policy
Featured on Startup FameFeatured on Twelve ToolsFazier badgeJuheAPI Marketplace - Connect smarter, beyond APIs | Product Huntai tools code.marketDang.ai
Copyright © 2025 - All rights reserved