计算 MCP
一个模型上下文协议 (MCP) 服务器,利用基本的计算器功能提供浏览器自动化功能。该服务器使 LLM 能够与计算器交互。(我实际上是为一个测试程序制作的)
用例
用于连接 MCP 功能的测试代码。
玩具项目
示例配置
在 VS Code 中安装
或者,您可以使用 VS Code CLI 安装 Playwright MCP 服务器:
安装后,计算器 MCP 服务器将可与 VS Code 中的 GitHub Copilot 代理一起使用。
CLI 选项
计算器 MCP 服务器支持以下命令行选项:
--port <port>
:监听 SSE 传输的端口
在 Linux 上运行带显示器的浏览器
在没有显示器的系统上或从 IDE 的工作进程运行带头浏览器时,从具有 DISPLAY 的环境中运行 MCP 服务器并传递--port
标志以启用 SSE 传输。
然后在 MCP 客户端配置中,将url
设置为 SSE 端点:
通过自定义传输进行编程使用
工具
添加
潜艇
乘法
div
模组
平方根
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
模型上下文协议服务器为 LLM 提供基本的计算器功能,使其能够执行加法、减法、乘法、除法、模数和平方根等数学运算。
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityA Model Context Protocol server that provides basic mathematical and statistical functions to LLMs, enabling them to perform accurate numerical calculations through a simple API.Last updated -131335MIT License
- AsecurityFlicenseAqualityA server that provides tools for performing basic arithmetic operations (addition, subtraction, multiplication, division) via the Model Context Protocol.Last updated -4
- AsecurityAlicenseAqualityA Model Context Protocol server that enables LLMs to perform precise numerical calculations by evaluating mathematical expressions.Last updated -1121MIT License
- AsecurityFlicenseAqualityA simple Model Context Protocol server that provides basic arithmetic operations (addition, subtraction, multiplication, division) as tools that can be called by Large Language Models.Last updated -4