Related MCP Server Resources

Explore more AI models, providers, and integration options:

  • Explore AI Models
  • Explore AI Providers
  • Explore MCP Servers
  • LangDB Pricing
  • Documentation
  • AI Industry Blog
  • S3 MCP Server
  • Fantasy Premier League MCP Server
  • MCP Server
  • Semgrep MCP Server
  • Image Generation MCP Server
Back to MCP Servers
Calculator MCP Server

Calculator MCP Server

Public
QuantGeekDev/mcp-add-sse

A Model Context Protocol server built with mcp-framework that allows users to create and manage custom tools for processing data, integrating with the Claude Desktop via CLI.

Verified
typescript
0 tools
May 30, 2025
Updated May 30, 2025

calculator

A Model Context Protocol (MCP) server built with mcp-framework.

Quick Start

# Install dependencies npm install # Build the project npm run build

Project Structure

calculator/
├── src/
│   ├── tools/        # MCP Tools
│   │   └── ExampleTool.ts
│   └── index.ts      # Server entry point
├── package.json
└── tsconfig.json

Adding Components

The project comes with an example tool in src/tools/ExampleTool.ts. You can add more tools using the CLI:

# Add a new tool mcp add tool my-tool # Example tools you might create: mcp add tool data-processor mcp add tool api-client mcp add tool file-handler

Tool Development

Example tool structure:

import { MCPTool } from "mcp-framework"; import { z } from "zod"; interface MyToolInput { message: string; } class MyTool extends MCPTool { name = "my_tool"; description = "Describes what your tool does"; schema = { message: { type: z.string(), description: "Description of this input parameter", }, }; async execute(input: MyToolInput) { // Your tool logic here return `Processed: ${input.message}`; } } export default MyTool;

Publishing to npm

  1. Update your package.json:

    • Ensure name is unique and follows npm naming conventions
    • Set appropriate version
    • Add description, author, license, etc.
    • Check bin points to the correct entry file
  2. Build and test locally:

    npm run build npm link calculator # Test your CLI locally
  3. Login to npm (create account if necessary):

    npm login
  4. Publish your package:

    npm publish

After publishing, users can add it to their claude desktop client (read below) or run it with npx


## Using with Claude Desktop

### Installing via Smithery

To install Calculator for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@QuantGeekDev/mcp-add-sse):

```bash
npx -y @smithery/cli install @QuantGeekDev/mcp-add-sse --client claude

Local Development

Add this configuration to your Claude Desktop config file:

MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%/Claude/claude_desktop_config.json

{ "mcpServers": { "calculator": { "command": "node", "args":["/absolute/path/to/calculator/dist/index.js"] } } }

After Publishing

Add this configuration to your Claude Desktop config file:

MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%/Claude/claude_desktop_config.json

{ "mcpServers": { "calculator": { "command": "npx", "args": ["calculator"] } } }

Building and Testing

  1. Make changes to your tools
  2. Run npm run build to compile
  3. The server will automatically load your tools on startup

Learn More

  • MCP Framework Github
  • MCP Framework Docs
Publicly Shared Threads0

Discover shared experiences

Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!

Share your threads to help others
Related MCPs5
  • S3 MCP Server
    S3 MCP Server

    An Amazon S3 Model Context Protocol server that allows Large Language Models like Claude to interact...

    3 tools
    Added May 30, 2025
  • Fantasy Premier League MCP Server
    Fantasy Premier League MCP Server

    A Model Context Protocol server that provides access to Fantasy Premier League data, allowing users ...

    Added May 30, 2025
  • MCP Server
    MCP Server

    This TypeScript-based MCP server allows users to manage a simple notes system through creating and s...

    Added May 30, 2025
  • Semgrep MCP Server
    Semgrep MCP Server

    An MCP server that provides a comprehensive interface to Semgrep, enabling users to scan code for se...

    6 tools
    Added May 30, 2025
  • Image Generation MCP Server
    Image Generation MCP Server

    A Model Context Protocol server that enables generation of high-quality images using the Flux.1 Schn...

    1 tools
    Added May 30, 2025