Skip to main content
Glama
ParthSharma1197

Simple Remote MCP Server

Simple MCP Server (FastMCP)

This repository demonstrates how to create, test, and deploy a simple remote MCP server using FastMCP, uv, and GitHub.


Prerequisites

Make sure you have the following installed:

  • Python 3.10+

  • uv (Python package manager)

  • Git

  • VS Code (recommended)

  • Node.js (for MCP Inspector)


Related MCP server: Python MCP Server Template

Step-by-Step Guide

1. Install uv

uv is a fast Python package manager and runtime.

pip install uv

2. Create a new project folder

mkdir simple-mcp-server
cd simple-mcp-server

3. Open the folder in VS Code

code .

4. Initialize the project

uv init

This creates:

  • pyproject.toml

  • Virtual environment configuration


5. Install FastMCP

uv add fastmcp

FastMCP allows you to build MCP-compatible servers easily.


6. Create a simple server

Create a file called main.py:

from fastmcp import FastMCP

mcp = FastMCP("Simple MCP Server")

@mcp.tool()
def hello(name: str) -> str:
    return f"Hello, {name}! Welcome to MCP."

if __name__ == "__main__":
    mcp.run()

7. Run the server

uv run main.py

Your MCP server will start locally.


8. Test using MCP Inspector

Use MCP Inspector to:

  • Connect to the server

  • Verify tools are listed

  • Send test requests

This confirms your server is MCP-compliant.


9. Create a GitHub repository

Create a new repo on GitHub named:

simple-mcp-server

10. Initialize Git locally

git init
git add .
git commit -m "Initial commit: Simple MCP server"

11. Add GitHub remote & push

git remote add origin https://github.com/yourusername/simple-mcp-server.git
git push -u origin main

12. Deploy on FastMCP Cloud

  1. Create an account on FastMCP Cloud

  2. Connect your GitHub repository

  3. Deploy the project

After deployment:

  • Your MCP server gets a public endpoint

  • It can be used by MCP clients and LLM agents


Project Structure

simple-mcp-server/
│── main.py
│── pyproject.toml
│── README.md

Next Steps

  • Add more MCP tools

  • Connect this server to LLM agents

  • Add authentication & logging


Happy building 🚀

Available Tools

2 tools
addA

Add two numbers together.

Args: a: First number b: Second number

Returns: The sum of a and b

ParametersJSON Schema
NameRequiredDescriptionDefault
aYes
bYes

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A3.7/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries full burden. It states what the tool does (addition) and the return value, but doesn't disclose any behavioral traits like error handling, precision limits, overflow behavior, or performance characteristics that would be important for an arithmetic operation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is appropriately sized with clear sections (Args, Returns). The main purpose is stated upfront, and each sentence serves a clear purpose. The structure could be slightly improved by integrating the parameter descriptions more naturally rather than as separate labeled sections.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity (2 integer parameters, no annotations, but has output schema), the description is reasonably complete. It explains what the tool does, what parameters mean, and what it returns. The output schema existence means the description doesn't need to detail return format, making this adequate for this simple arithmetic function.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage, the description compensates by clearly explaining both parameters ('First number' and 'Second number'). While it doesn't provide format details beyond what the schema already shows (integers), it adds meaningful semantic context for each parameter.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the specific action ('Add two numbers together') and identifies the resource (numbers). It distinguishes from the sibling tool 'random_number' by focusing on arithmetic addition rather than random generation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage for arithmetic addition but doesn't explicitly state when to use this tool versus alternatives. No guidance is provided about when not to use it or what other tools might be appropriate for different mathematical operations.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

random_numberB

Generate a random number within a range.

Args: min_val: Minimum value (default: 1) max_val: Maximum value (default: 100)

Returns: A random integer between min_val and max_val

ParametersJSON Schema
NameRequiredDescriptionDefault
min_valNo
max_valNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

B3.3/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions that the tool 'generates' a random number, implying a read-only operation, but doesn't address important behavioral aspects like whether the generation is truly random, if there are any rate limits, or what happens with invalid input ranges. The description adds minimal behavioral context beyond the basic function.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is perfectly structured and concise. It begins with a clear purpose statement, then provides parameter documentation in a clean Args/Returns format. Every sentence earns its place, and there's no wasted verbiage. The information is front-loaded with the most important details first.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's low complexity (2 simple parameters) and the presence of an output schema (implied by 'Returns' section), the description is reasonably complete. It explains what the tool does, documents the parameters, and specifies the return value. However, it could be more complete by addressing potential edge cases or behavioral constraints.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema description coverage is 0%, so the description must compensate. It does this effectively by explaining both parameters: 'min_val: Minimum value (default: 1)' and 'max_val: Maximum value (default: 100)'. This adds clear meaning beyond what the bare schema provides, though it doesn't explain edge cases like what happens if min_val > max_val.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: 'Generate a random number within a range.' This is a specific verb+resource combination that tells the agent exactly what the tool does. However, it doesn't explicitly differentiate from the sibling 'add' tool, which appears to be a mathematical operation rather than a random number generator, so it doesn't fully address sibling distinction.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. There's no mention of when this tool is appropriate, what scenarios it's designed for, or how it compares to the sibling 'add' tool. The agent must infer usage from the purpose alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. 2 tool updatesv0.1.0
    • First observedadd
    • First observedrandom_number

TDQS

B3.3/5.0
Disambiguation5/5

The two tools have clearly distinct purposes: 'add' performs arithmetic addition on two numbers, while 'random_number' generates a random integer within a specified range. There is no overlap in functionality, making it easy for an agent to select the correct tool based on the task.

Naming Consistency3/5

The naming is mixed: 'add' is a simple verb, while 'random_number' uses a noun phrase with an underscore. This lacks a consistent pattern like verb_noun, but the names are still readable and descriptive enough to understand their functions.

Tool Count2/5

With only 2 tools, the server feels thin and under-scoped for a 'Simple Remote MCP Server' that might imply broader utility. While the tools are functional, the count is too low to cover a meaningful domain, limiting the server's coherence and usefulness for agents.

Completeness2/5

Inferred as a basic utility server, the tool set is severely incomplete; it lacks common operations like subtraction, multiplication, or other random generation methods (e.g., floats). This creates significant gaps that could lead to agent failures when trying to perform basic mathematical or random tasks.

Maintenance

ActivityInactive
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • -
    license
    Not graded
    quality
    Not graded
    maintenance
    A basic MCP server template with example tools for echoing messages and retrieving server information. Built with FastMCP framework and supports both stdio and HTTP transports for integration with various clients.
    -
  • F
    license
    Not graded
    quality
    D
    maintenance
    A foundational template for building MCP servers in Python using Streamable HTTP transport. Provides example implementations of tools, resources, and prompts to help developers create custom MCP integrations for AI assistants.
    -
  • A
    license
    B
    quality
    D
    maintenance
    A template repository for building Model Context Protocol (MCP) servers that enable LLM clients to interact with custom tools and services through standardized JSON-RPC communication.
    3
    MIT
  • F
    license
    Not graded
    quality
    D
    maintenance
    A production-ready Python scaffold for building Model Context Protocol (MCP) servers using FastMCP. It provides a structured framework for developers and AI agents to rapidly develop, test, and manage custom tools and workflows.
    1
    -

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ParthSharma1197/remote-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server