MCP.so
登录

A simple calculator app using MCP Server

@KeerthiNingegowda

基本信息

分类

其他

许可证

MIT license

传输方式

stdio

作者

KeerthiNingegowda

关于 A simple calculator app using MCP Server

A simple calculator app with MCP compliant server and client

A simple calculator app using MCP Server 配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

A simple calculator app using MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is A simple calculator app using Model Context protocol?

A minimal calculator server and client built with FastMCP to explore the Model Context Protocol (MCP) and tool calling. It supports basic arithmetic operations (add, subtract, multiply, divide, modulo) and is intended for developers learning MCP fundamentals.

How to use A simple calculator app using Model Context protocol?

Install dependencies with uv sync, then activate the environment with source .venv/bin/activate. To inspect the server, navigate to the fastmcp_calculator_server folder and run mcp dev server.py. To run the full MCP application, go to mcp_calculator/mcp_compliant_client and run python client.py <path to server.py>. A valid Anthropic API key must be set in a .env file.

Key features of A simple calculator app using Model Context protocol

  • Supports addition, subtraction, multiplication, division, and modulo.
  • Built using FastMCP for simplicity and automatic error handling.
  • Includes a debugging interface via MCP Inspector.
  • Provides a minimal MCP client that takes user queries for calculations.
  • Designed for exploring tool calling without external IDE dependencies.

Use cases of A simple calculator app using Model Context protocol

  • Learning how to build and run an MCP server from scratch.
  • Understanding how MCP tool calls are made and returned.
  • Testing arithmetic with different number formats (e.g., "add 2 and 3" vs "add two and three").
  • Exploring sequential tool calling and input validation in future iterations.

常见问题

1

What arithmetic operations does the server support?

The server supports addition, subtraction, multiplication, division, and modulo.

2

How do I run the server and client?

First install dependencies with `uv sync` and activate the virtual environment. To inspect the server, run `mcp dev server.py` inside the `fastmcp_calculator_server` folder. To run the full app, execute `python client.py <path to server.py>` from the `mcp_calculator/mcp_compliant_client` folder.

3

What are the runtime requirements?

The project requires Python, `uv`, FastMCP, and an Anthropic API key stored in a `.env` file. The MCP client needs access to an LLM (Anthropic).

4

Does the server store chat history?

No. The README explicitly notes that storing previous chat history is not supported to keep the implementation simple.

5

What known limitations exist?

Annotations in FastMCP are not supported in the version specified by the lock file. Input validation by server or client is not implemented. Some newer MCP features may be unavailable or buggy due to the early stage of the technologies used.

评论

其他 分类下的更多 MCP 服务器