My MCP Server

My MCP Server

A lightweight MCP server providing tools for adding integers, getting current time, and fetching weather forecasts via wttr.in.

Category
Visit Server

README

My MCP Server

A lightweight Model Context Protocol (MCP) server built with FastMCP, exposing three tools that can be used by any MCP-compatible client (Claude Desktop, agents, etc.).

Tools

Tool Description Input
add Adds two integers together a: int, b: int
get_current_time Returns the current date and time as an ISO string none
get_current_weather Fetches a 3-day weather forecast for any city via wttr.in city: str

Demo

Weather forecast for Addis Ababa fetched live via the get_current_weather tool:

Weather demo

Tech Stack

  • Python 3.12
  • FastMCP — MCP server framework
  • wttr.in — free weather API (no key required)
  • uv — package and environment management

Getting Started

1. Clone the repo:

git clone https://github.com/aarongeb/mcp.git
cd mcp

2. Create a virtual environment and install dependencies:

uv venv --python 3.12
source .venv/bin/activate
 uv sync

3. Set up environment variables:

.env
# set MCP_PORT in .env (default: 3000)

4. Run the server:

./server.py

The server starts on http://127.0.0.1:3000 (SSE transport).

Environment Variables

Variable Description Default
MCP_PORT Port the server listens on 3000

Testing the Tools

With the FastMCP test client:

import asyncio
from fastmcp import Client

async def main():
    async with Client("http://127.0.0.1:3000/sse") as client:
        tools = await client.list_tools()
        print("Tools:", [t.name for t in tools])

        result = await client.call_tool("add", {"a": 5, "b": 3})
        print("add(5,3):", result.content[0].text)

        result = await client.call_tool("get_current_time", {})
        print("time:", result.content[0].text)

        result = await client.call_tool("get_current_weather", {"city": "Addis Ababa"})
        print("weather:", result.content[0].text)

asyncio.run(main())
uv run test_server.py

With MCP Inspector (visual UI):

npx @modelcontextprotocol/inspector http://127.0.0.1:3000/sse

Connecting to Claude Desktop

Add this to your claude_desktop_config.json:

{
  "mcpServers": {
    "my-mcp-server": {
      "url": "http://127.0.0.1:3000/sse"
    }
  }
}

The server must be running before you open Claude Desktop.

Project Structure

mcp/
├── server.py
├── test_server.py
├── assets/
│   └── weather_demo.png
├── .env
├── .gitignore
└── pyproject.toml

License

For personal use.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured