A custom MCP server that provides useful tools and resources for AI assistants
Low maintenance activity. Last release 20 months ago. Weaker on recent releases and release cadence.
pip install mcp-serverREADME as published on PyPI with version 0.1.4.
# Math Calculator MCP Server
A custom MCP server that provides mathematical calculation tools and resources for AI assistants.
## Components
### Tools
The server provides basic and advanced mathematical operations:
- **add**: Add two numbers together
- **subtract**: Subtract the second number from the first
- **multiply**: Multiply two numbers together
- **divide**: Divide the first number by the second
- **calculate_percentage**: Calculate a percentage of a value
- **power**: Raise a number to a specified power
- **square_root**: Calculate the square root of a number
### Resources
The server provides reference formulas as resources:
- **formula://area**: Common formulas for calculating area of different shapes
- **formula://volume**: Common formulas for calculating volume of different 3D shapes
- **formula://trigonometry**: Common trigonometric formulas and identities
### Prompts
The server includes templates for solving mathematics problems:
- **solve_math_problem**: Template for solving math word problems step by step
- **formula_application**: Template for applying a specific formula to solve a problem
## Configuration
### Environment Variables
This server doesn't require any specific environment variables.
## Quickstart
### Install
#### Claude Desktop
On MacOS: `~/Library/Application\ Support/Claude/claude_desktop_config.json`
On Windows: `%APPDATA%/Claude/claude_desktop_config.json`
<details>
<summary>Development/Unpublished Servers Configuration</summary>
```json
"mcpServers": {
"mcp-server": {
"command": "uv",
"args": [
"--directory",
"/Users/Ajinkya25/Documents/Idea-Labs/MCP/mcp-server",
"run",
"mcp-server"
]
}
}
Published Servers Configuration
"mcpServers": {
"mcp-server": {
"command": "uvx",
"args": [
"mcp-server"
]
}
}
Development
Testing Locally
To test the server locally:
# Activate the virtual environment (if not already activated)
source .venv/bin/activate # On macOS/Linux
# Test the server in development mode
mcp dev -m mcp_server.server
Building and Publishing
To prepare the package for distribution:
- Sync dependencies and update lockfile:
uv sync
- Build package distributions:
uv build