loading…
Search for a command to run...
loading…
A sample MCP server that provides basic arithmetic tools like addition, subtraction, multiplication, and division. It serves as a demonstration for implementing
A sample MCP server that provides basic arithmetic tools like addition, subtraction, multiplication, and division. It serves as a demonstration for implementing the Model Context Protocol and connecting custom tools to clients like Claude Desktop.
This repository contains demo projects showcasing the use of the Message Communication Protocol (MCP) in different scenarios.
A simple calculator service with a client and server implementation.
demo-client.mjs: Example client for the calculator service server.mjs: Calculator server package.json, README.mdOffical demo from MCP documentation
A TypeScript-based client for interacting with MCP services.
index.ts: Main client code build/index.js: Compiled output .env: Environment configuration log/session1.txt: Example session log package.json, tsconfig.json[!NOTE] Need to set
ANTHROPIC_API_KEYin.envto run the client. The credit from Anthropic is NOT free.
Offical demo from MCP documentation
A weather information service using MCP.
src/index.ts: Main source code build/index.js: Compiled output package.json, tsconfig.jsonEach project contains its own dependencies and setup.
Navigate into a project folder and run:
npm install
npm start
or for TypeScript projects:
npm install
npm run build
npm start
MIT
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"mcp-calculator-demo": {
"command": "npx",
"args": []
}
}
}