loading…
Search for a command to run...
loading…
A starter MCP server that provides a calculator tool for performing basic arithmetic operations within Claude Desktop. It serves as a demonstration project for
A starter MCP server that provides a calculator tool for performing basic arithmetic operations within Claude Desktop. It serves as a demonstration project for building and extending local tools using the Model Context Protocol.
A local MCP (Model Context Protocol) server for Claude Desktop.
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.
calculate — Performs basic math operations: add, subtract, multiply, and divideThis is a starter project — you can easily extend it by adding more tools in
src/index.js.
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
git clone https://github.com/santanu2908/demo-mcp-01.git
cd demo-mcp-01
npm install
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%\ClaudeIf theClaudefolder 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"
Fully quit Claude Desktop (check the system tray → right-click → Quit) and reopen it.
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.
npm start NeededYou 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 |
Here's a walkthrough of a real tool call: "Multiply 12 by 7"
The user sends a message to Claude Desktop:
Use the calculate tool to multiply 12 by 7
tool_search mechanism to locate the calculate tool by querying "math multiply".a → number (first operand)b → number (second operand)operation → one of add | subtract | multiply | dividecalculate tool with:a = 12
b = 7
operation = multiply
Result: 84
84 from the tool and confirmed it as correct.calculatePerforms a basic arithmetic operation on two numbers.
| Parameter | Type | Required | Values |
|---|---|---|---|
a |
number |
✅ | Any numeric value |
b |
number |
✅ | Any numeric value |
operation |
string |
✅ | add, subtract, multiply, divide |
Example Request:
{
"a": 12,
"b": 7,
"operation": "multiply"
}
Example Response:
Result: 84
No hammer icon showing?
index.jsnode --version in a terminalConfig not loading?
claude_desktop_config.json (not .json.txt)%APPDATA%\Claude\, not inside the project foldercalculate tool is deterministic: same input always yields the same output.Built with Model Context Protocol · Connected via Claude.ai Developer Tools
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"demo-mcp-01": {
"command": "npx",
"args": []
}
}
}Web content fetching and conversion for efficient LLM usage.
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also