MCP Server
A simple Model Context Protocol (MCP) server implementation that provides tool functionality through a standardized interface. This server currently implements a basic calculator tool that can add two numbers together.
Overview
This server uses the @modelcontextprotocol/sdk
to create a standardized way of exposing tools to MCP clients. It runs over stdio transport, making it suitable for integration with various client applications.
Features
- Implements MCP Server specification
- Uses stdio transport for communication
- Provides a
calculate_sum
tool that adds two numbers together
Available Tools
calculate_sum
A simple addition tool that takes two numbers and returns their sum.
Input Schema:
{
"type": "object",
"properties": {
"a": { "type": "number" },
"b": { "type": "number" }
},
"required": ["a", "b"]
}
Response:
The tool will return the sum as a text response. For example, "8"
for the above input.
Technical Details
- Server Name: mcp-server
- Version: 1.0.0
- Transport: StdioServerTransport
- SDK: @modelcontextprotocol/sdk
Getting Started
- Install dependencies:
npm|yarn|pnpm install @modelcontextprotocol/sdk
- Run the server:
- Meant to be used with an MCP client, for example this one. Usage with that client would look like this:
npm|yarn|pnpm start <path_to_this_dir/build/index.js>
Error Handling
The server implements standard MCP error handling. If an unknown method is called, it will return a MethodNotFound
error.
MCP Server
Project Details
- mikefey/mcp-server
- mcp-server
- Last Updated: 4/30/2025
Recomended MCP Servers
Provide latest cryptocurrency news to AI agents.
A powerful flow control component enabling reliability, resilience and monitoring for microservices. (面向云原生微服务的高可用流控防护组件)
MCP server for Threat info collection in cyber security
An MCP Reddit server for post management in Reddit
Simplest remote MCP server implementation
This read-only MCP Server allows you to connect to SingleStore data from Claude Desktop through CData JDBC Drivers....
Command line interface for MCP clients with secure execution and customizable security policies
Claude Custom Prompts MCP Server - Create and use custom prompt templates with Claude AI