Demo MCP 01 MCP Server

Local setup required. This server has to be cloned and prepared on your machine before you register it in Claude Code.
1

Set the server up locally

Run this once to clone and prepare the server before adding it to Claude Code.

Run in terminal
git clone https://github.com/santanu2908/demo-mcp-01.git
cd demo-mcp-01
npm install
2

Register it in Claude Code

After the local setup is done, run this command to point Claude Code at the built server.

Run in terminal
claude mcp add demo-mcp-01 -- node "<FULL_PATH_TO_DEMO_MCP_01>/dist/index.js"

Replace <FULL_PATH_TO_DEMO_MCP_01>/dist/index.js with the actual folder you prepared in step 1.

README.md

A starter MCP server that provides a calculator tool for Claude Desktop.

demo-mcp-01

A local MCP (Model Context Protocol) server for Claude Desktop.


Overview

This project is a local MCP (Model Context Protocol) server that extends Claude Desktop with custom tools. MCP is an open protocol that allows Claude to interact with local services, files, APIs, and more — turning Claude into a powerful assistant tailored to your specific workflow.

This server is built with the MCP TypeScript SDK and runs locally on your machine via stdio transport. Once configured, Claude Desktop automatically starts the server and makes its tools available in every conversation.

What's included

  • calculate — Performs basic math operations: add, subtract, multiply, and divide

This is a starter project — you can easily extend it by adding more tools in src/index.js.


šŸ“ Project Structure

demo-mcp-01/
│
ā”œā”€ā”€ src/
│   └── index.js          # MCP server entry point
│
ā”œā”€ā”€ tools/
│   └── calculate.js      # Calculate tool logic
│
ā”œā”€ā”€ .gitignore            # Ignore node_modules, .env, etc.
ā”œā”€ā”€ package.json          # Dependencies and scripts
└── README.md             # This file

Getting Started

Prerequisites


1. Clone the Repository

git clone https://github.com/santanu2908/demo-mcp-01.git
cd demo-mcp-01

2. Install Dependencies

npm install

3. Configure Claude Desktop

Create a file named claude_desktop_config.json in the Claude config folder.

Config folder path (Windows):

C:\Users\<YourUsername>\AppData\Roaming\Claude\

šŸ’” To quickly open this folder, press Win + R and type: %APPDATA%\Claude If the Claude folder doesn't exist, create it manually.

Paste the following into claude_desktop_config.json, updating the path to match where you cloned the repo:

{
  "mcpServers": {
    "my-local-server": {
      "command": "node",
      "args": [
        "C:\\Users\\<YourUsername>\\path\\to\\demo-mcp-01\\src\\index.js"
      ]
    }
  }
}

āš ļø On Windows, use double backslashes \\ in the path. Example: "C:\\Users\\John\\Documents\\demo-mcp-01\\src\\index.js"

4. Restart Claude Desktop

Fully quit Claude Desktop (check the system tray → right-click → Quit) and reopen it.

5. Verify the Setup

Open Claude Desktop and go to Settings → Developer. You should see my-local-server listed with a green status indicator showing it is running. If it shows an error or is missing, revisit the config path and restart Claude Desktop.


āš™ļø How the Server Starts — No `npm start` Needed

You never need to manually run npm start or keep a terminal open. Claude Desktop launches the server for you automatically.

When Claude Desktop reads your config:

{
  "command": "node",
  "args": ["C:\\...\\src\\index.js"]
}

It runs node src/index.js as a child process in the background every time Claude Desktop opens. When you close Claude Desktop, it shuts the process down too.

This works because the server uses StdioServerTransport — it communicates via stdin/stdout rather than HTTP or a network port. Claude Desktop pipes messages directly to the process, so there is nothing to manually start or keep alive. Claude Desktop owns the entire process lifecycle.

Traditional Server MCP stdio Server
Who starts it? You (npm start) Claude Desktop
How does it communicate? HTTP / WebSocket stdin / stdout
Who keeps it alive? You Claude Desktop
Port needed? Yes No

šŸ”„ How It Works — End-to-End Flow

Here's a walkthrough of a real tool call: "Multiply 12 by 7"

Step 1 — User Prompt

The user sends a message to Claude Desktop:

Use the calculate tool to multiply 12 by 7

Step 2 — Tool Discovery

  • Claude used the internal tool_search mechanism to locate the calculate tool by querying "math multiply".
  • The tool schema was returned with the following parameters:
    • a → number (first operand

Tools (1)

calculatePerforms basic math operations including add, subtract, multiply, and divide.

Configuration

claude_desktop_config.json
{"mcpServers": {"my-local-server": {"command": "node", "args": ["/path/to/demo-mcp-01/src/index.js"]}}}

Try it

→Calculate the result of 12 multiplied by 7.
→What is 150 plus 275?
→Subtract 45 from 100 using the calculator tool.
→Divide 500 by 25.

Frequently Asked Questions

What are the key features of Demo MCP 01?

Provides a calculator tool for basic arithmetic. Supports addition, subtraction, multiplication, and division. Runs locally via stdio transport. Demonstrates MCP server architecture for Claude Desktop.

What can I use Demo MCP 01 for?

Performing quick arithmetic calculations directly within Claude. Learning how to build and extend custom MCP tools. Testing local MCP server integration with Claude Desktop.

How do I install Demo MCP 01?

Install Demo MCP 01 by running: git clone https://github.com/santanu2908/demo-mcp-01.git && cd demo-mcp-01 && npm install

What MCP clients work with Demo MCP 01?

Demo MCP 01 works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep Demo MCP 01 docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare