Metadata-Version: 2.1
Name: mcp-calpower-server
Version: 0.2.0
Summary: A Model Context Protocol server for power calculating
Author: MJ
Author-email: sufer76980@163.com
License: MIT
Keywords: mcp,llm,math,calculator,power
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE

# Calculator MCP Server

A Model Context Protocol server for power calculating. This server enables LLMs to use calculator for precise numerical power calculations.

### Available Tools

- `calculate` - Calculates/evaluates the given expression.
  - `expression` (string, required): Expression to be calculated

## Installation

### Using uv (recommended)

When using [`uv`](https://docs.astral.sh/uv/) no specific installation is needed. We will
use [`uvx`](https://docs.astral.sh/uv/guides/tools/) to directly run *mcp-calpower-server*.

```bash
curl -LsSf https://astral.sh/uv/install.sh | sh
```

### Using PIP

Alternatively you can install `mcp-calpower-server` via pip:

```bash
pip install mcp-calpower-server
```

After installation, you can run it as a script using:

```bash
python -m mcp_calpower_server
```

## Configuration

### Using uv (recommended)

Add this to your MCP client settings:

```json
{
    "mcpServers": {
        "calculator": {
            "command": "uvx",
            "args": ["mcp-calpower-server"]
        }
    }
}
```

### Using PIP

Alternatively add this to your MCP client settings:

```json
"mcpServers": {
  "calculator": {
    "command": "python",
    "args": ["-m", "mcp_calpower_server"]
  }
}
```

## License

mcp-calpower-server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.

