Skip to main content
Glama
MCP Server Deployment Demo

MCP Server Deployment Demo

MCP Server Deployment Demo

This project is a demonstration of how to create and deploy a simple server that adheres to the Model-Context-Protocol (MCP). It provides a basic tool that can be called by an MCP client, such as an AI model like Claude.

Overview

The Model-Context-Protocol (MCP) is a specification for communication between a large language model (or other AI agent) and a local development environment. It allows the model to access local context and execute tools securely.

This project implements a simple MCP server using the mcp Python library. The server exposes a single tool, add, which takes two integers and returns their sum.

Related MCP server: MCP Server Basic

Features

  • A simple FastMCP server implementation.

  • A basic add(x: int, y: int) -> int tool.

  • Packaged as a Python project using pyproject.toml and setuptools.

  • Ready for installation and deployment.

Project Structure

  • pyproject.toml: Defines project metadata, dependencies, and build configuration. The [project.scripts] section defines the mcp-server command.

  • src/mcpserver/deployment.py: Contains the core logic for the MCP server, including the definition of the add tool.

  • src/mcpserver/__main__.py: Provides the main entry point to run the server from the command line.

Getting Started

Prerequisites

  • Python 3.12+

  • uv (a fast Python package installer and resolver)

Installation

  1. Clone the repository:

    git clone https://github.com/AdarshChaudhary03/mcp-server-deployment.git
    cd mcp-server-deployment
  2. Install dependencies: Create a virtual environment and install the project in editable mode.

    uv venv
    source .venv/bin/activate
    uv pip install -e .

Running the Server

Once installed, you can run the MCP server using the script defined in pyproject.toml:

mcp-server

Claude Integration

To use this server as an MCP host for a client like Claude, you need to update your Claude configuration file (claude-config.json). Add the following entry to the mcpHosts section.

This configuration tells the Claude client how to launch and communicate with your MCP server. It uses uvx to run the server directly from the Git repository, ensuring you are always using the latest version.

Note: Make sure to replace the command and directory paths with the correct absolute paths for your system.

"MCPServer": {
  "command": "/Library/Frameworks/Python.framework/Versions/3.13/bin/uvx",
  "args": [
    "--directory",
    "/Users/adarshchaudhary/Desktop/ai-projects/mcp-servers/mcp-server-deployment",
    "--from",
    "git+https://github.com/AdarshChaudhary03/mcp-server-deployment",
    "mcp-server"
  ]
}

Available Tools

1 tool
addC

Adds two integers.

Inputs: x (required), y (required). Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    C2.8/5.0

    Scored across 1 tool

    Disambiguation5/5

    With only one tool, there is no possibility of confusion or overlap between tools. The tool 'add' has a clear and distinct purpose that cannot be mistaken for any other tool in the set.

    Naming Consistency5/5

    A single tool inherently has perfect naming consistency, as there are no other tools to compare it against. The tool name 'add' follows a simple verb pattern, which is appropriate for its function.

    Tool Count2/5

    A single tool for a server named 'MCP Server Deployment Demo' is too few for the apparent scope, which suggests deployment-related operations. This minimal set feels thin and inadequate for handling deployment tasks beyond basic arithmetic.

    Completeness1/5

    The tool set is severely incomplete for a deployment domain. With only an 'add' tool for integers, there are obvious gaps in deployment operations such as deploying, configuring, monitoring, or managing servers, making the surface unusable for its stated purpose.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      A minimal, production-ready MCP server with a simple addition calculator tool that demonstrates integration with the Model Context Protocol.
      12 npm
      1
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      A basic MCP server example that provides simple arithmetic tools (addition and subtraction) and personalized greeting resources. Serves as a foundation for learning MCP server implementation and development.
      -
    • F
      license
      Not graded
      quality
      D
      maintenance
      A minimal demonstration MCP server that provides basic mathematical addition and greeting functionality, serving as a template for building and deploying FastMCP servers.
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      A simple tutorial MCP server that provides a basic addition tool for adding two numbers together, demonstrating fundamental MCP server implementation.
      8 npm
      ISC