Skip to main content
Glama
MCP Basic Create Tool

MCP Basic Create Tool

🧠 MCP Basic Create Tool

A minimal Model Context Protocol (MCP) project demonstrating how to create and register tools using the fastmcp framework.

This repository shows how to build a working MCP server that can expose Python functions as tools for AI clients like Claude Desktop or any other MCP-compatible app.


πŸš€ Features

  • Simple MCP server setup using FastMCP

  • Example tool implementation (get_weather)

  • Easy to extend with more tools

  • Ready for integration with Claude or ChatGPT (via MCP)


1️⃣ Clone the repository

git clone https://github.com/anilvermaspeaks/mcp-bacis-create-tool.git
cd mcp-bacis-create-tool

 Create and activate a virtual environment
python -m venv basics-mcp


To connect this tool to Claude Desktop, add the following entry inside your Claude configuration file:

Config path:

Windows β†’ %APPDATA%\Claude\claude_desktop_config.json

macOS β†’ ~/Library/Application Support/Claude/claude_desktop_config.json

Add this JSON snippet:

{
  "mcpServers": {
    "mcp-bacis-create-tool": {
      "command": "python",
      "args": [
        "D:/basics-mcp/main.py"
      ],
      "env": {
        "PYTHONPATH": "D:/basics-mcp"
      }
    }
  }
}

## run MCP server(main.py) using custom mcp client(client.py)
  uv run python client.py

Available Tools

1 tool
get_weatherB

Gets the weather for a given location.

Args:
    location (str): The location (city, country, etc.)

Returns:
    str: A short weather description.

Inputs: location (required). Returns: result

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 1 tool

    Disambiguation5/5

    Only one tool exists, so there is no possibility of confusion between tools. The agent will always select 'get_weather' for weather queries.

    Naming Consistency5/5

    With only one tool, no naming inconsistencies exist. The name 'get_weather' follows a clear verb_noun pattern.

    Tool Count1/5

    A single tool is extremely limited for a server named 'MCP Basic Create Tool', which suggests a broader scope. Additionally, the only tool is a weather lookup, not a creation tool, making the count inappropriate.

    Completeness1/5

    The server provides only a basic weather retrieval tool. For a weather domain, one would expect additional operations like forecast, historical data, or location search, but none are present.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      B
      quality
      D
      maintenance
      A lightweight server that exposes weather-related tools (get_coordinates and get_forecast) using the Modular Command Protocol, designed for integration with AI agents and LLMs.
      2
      -
    • F
      license
      Not graded
      quality
      C
      maintenance
      A basic MCP server implementation using the FastMCP framework that provides utility tools for greetings and mathematical calculations. It is designed to demonstrate tool integration for AI-assisted development workflows like Cline.
      -
    • A
      license
      A
      quality
      D
      maintenance
      A simple MCP server that exposes a get_weather tool to fetch real-time weather for any GPS coordinates using the Open-Meteo API, no API key required.
      1
      11 npm
      ISC