MCP Calculator Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Calculator Serveradd 123 and 456"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Calculator Server - VSCode Setup Guide
This project contains a simple Model Context Protocol (MCP) server that provides an add_numbers tool.
Prerequisites
Related MCP server: TestMCP
Quick Setup
1. Initialize Virtual Environment
python3 -m venv venv
source venv/bin/activate # On Windows: .\venv\Scripts\activate
pip install -r requirements.txt2. Configure VSCode Extension
This project includes a local mcp_config.json that is configured to use the local venv.
If your VSCode extension (like Roo Code or Cline) supports workspace-level MCP settings, it will automatically detect the server. Otherwise, you can point your global settings to the local venv path:
{
"mcpServers": {
"calculator": {
"command": "/ABSOLUTE/PATH/TO/mcp_poc/venv/bin/python3",
"args": ["/ABSOLUTE/PATH/TO/mcp_poc/mcp_server.py"]
}
}
}Repository-level Configuration
We have included a template configuration file at mcp_config.template.json. You can copy this and adjust the paths for your local machine.
How to Test
Run the included test script to ensure the server is working correctly:
python3 test_server.pySetup on a New PC
If you are moving to a different machine:
Clone the repo:
git clone https://github.com/barneybarney143/mcp_poc.gitRun Setup:
python3 -m venv venv source venv/bin/activate pip install -r requirements.txtUpdate Path: MCP servers usually require absolute paths. Open your VSCode MCP settings and update the
commandandargsto match the location of the project on your new machine.TIPIf you use theRoo Code extension, it can automatically detect the
mcp_config.jsonin the root of this workspace using relative paths!
This server cannot be deployed
Maintenance
Related MCP Connectors
The OpenRouter MCP server plugs OpenRouter into the AI tools you already use. Once connected, your assistant can pull live OpenRouter data (models, prices, your credits, rankings, and docs) and send quick test messages, all without leaving your editor.
Related MCP Servers
- FlicenseAqualityDmaintenanceA simple and extendable MCP server that currently provides basic addition functionality and can be easily extended by defining new tools with docstrings.4-
- -licenseNot gradedqualityNot gradedmaintenanceA Python MCP server that provides a tool called addNumbers for mathematical operations.-
- AlicenseNot gradedqualityDmaintenanceA simple demonstration MCP server that provides a basic arithmetic tool for adding two numbers together, showcasing how to build custom MCP servers with input validation.10 npmISC
- FlicenseNot gradedqualityDmaintenanceA simple MCP server that provides a tool for adding two numbers, designed for testing MCP integration with Claude.-