Skip to content

michael-capner/math-mcp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

math-mcp

This project is a simple MCP (Model Context Protocol) server for basic math operations.

Prerequisites

  • Python 3.12+
  • uv (for running the server)

Installation

  1. Clone the repository:
    git clone https://github.com/michael-capner/math-mcp.git
    cd math-mcp
  2. Install dependencies:
    uv pip install -r requirements.txt
    Or, if using pyproject.toml:
    uv pip install -e .

Running the MCP Server

You can start the MCP server using the following command:

uv --directory /workspaces/math-mcp run server.py

Or use the configuration in .vscode/mcp.json for integration with MCP tools.

MCP Server Configuration

The MCP server is configured in .vscode/mcp.json as follows:

{
  "servers": {
    "math-mcp": {
      "command": "uv",
      "args": [
        "--directory",
        "/workspaces/math-mcp",
        "run",
        "server.py"
      ]
    }
  },
  "inputs": []
}

Example Prompts

You can use the following prompts with math-mcp:

Add

add 1 plus 2

Subtract

subtract 5 minus 3

Multiply

multiply 2 and 3

Divide

divide 6 by 2

Project Structure

  • server.py: Main MCP server implementation
  • pyproject.toml: Project metadata and dependencies
  • uv.lock: Dependency lock file
  • .vscode/mcp.json: MCP server configuration

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages