Math Addition Server
FreeNot checkedA simple MCP server that provides a tool for adding two numbers, designed for testing MCP integration with Claude.
About
A simple MCP server that provides a tool for adding two numbers, designed for testing MCP integration with Claude.
README
Phương pháp 1: Debug độc lập bằng MCP Inspector (Khuyên dùng đầu tiên)
Sử dụng công cụ này để kiểm tra logic code và các gói tin JSON-RPC trên giao diện web độc lập trước khi gắn vào ứng dụng thật.
Cách sử dụng:
Chạy lệnh (tại thư mục chứa dự án):
npx @modelcontextprotocol/inspector npx tsx server.tsTruy cập http://localhost:5173 trên trình duyệt (nếu không hiện cửa sổ).
Bấm Connect, chuyển sang tab Tools và nhấp Execute Tool để chạy thử tính tổng.
Phương pháp 2: Kiểm thử với Claude Code (Giao diện CLI)
Thêm MCP server:
claude mcp add my-test-math-server -- npx tsx "C:/Đường/Dẫn/Tuyệt/Đối/server.ts"
Kiểm tra trạng thái kết nối:
claude mcp list
(Đảm bảo hiển thị Connected)
Bắt đầu test:
Mở chat với Claude Code và gõ:
"Hãy dùng công cụ tính tổng của bạn để tính 4521 + 5479"
Phương pháp 3: Kiểm thử với Claude Desktop (Giao diện App)
Thêm cấu hình vào file claude_desktop_config.json
File nằm ở:
- Windows:
%APPDATA%\Claude - Mac:
~/Library/Application Support/Claude/
"mcpServers": {
"my-test-math-server": {
"command": "npx",
"args": [
"tsx",
"C:/Đường/Dẫn/Tuyệt/Đối/server.ts"
]
}
}
Các bước thực hiện:
- Thoát hẳn (Quit) và khởi động lại ứng dụng Claude Desktop
- Tạo cuộc trò chuyện mới (New Chat)
- Gõ vào ô chat:
"Tính tổng 1545 và 3423 bằng công cụ của bạn"
📝 Lưu ý quan trọng
Không dùng
console.log()trong luồng code thực thi chính. Nếu cần debug, hãy dùngconsole.error("log message")để tránh làm vỡ định dạng JSON-RPC trên luồng stdio.Luôn sử dụng đường dẫn tuyệt đối (Absolute Path) trỏ tới file
server.tskhi cấu hình.
Installing Math Addition Server
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/Hng2725/MCPTestingWithClaudeFAQ
Is Math Addition Server MCP free?
Yes, Math Addition Server MCP is free — one-click install via Unyly at no cost.
Does Math Addition Server need an API key?
No, Math Addition Server runs without API keys or environment variables.
Is Math Addition Server hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Math Addition Server in Claude Desktop, Claude Code or Cursor?
Open Math Addition Server on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
by modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
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
by xuzexin-hzCompare Math Addition Server with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All ai MCPs
