first_mcp_server

benstrugo15/first_mcp_server

3.2

If you are the rightful owner of first_mcp_server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

The MCP Claude Server is a production-level implementation of an MCP-based AI server using Claude (Anthropic API) and a set of tools to provide various functionalities.

Tools
  1. get_weather

    City-based weather summary

  2. get_news

    Latest headlines per country

  3. get_exchange_rate

    Currency conversion

  4. get_joke

    Random joke

  5. get_stock_price

    Current stock price

  6. get_quote

    Inspirational quote

  7. send_email

    Deliver message summary via email

MCP Claude Server

A production-level implementation of an MCP-based AI server using Claude (Anthropic API) and 7 tools. The model chooses which tools to invoke and returns a final summary via email.

šŸš€ Features

  • Fully async FastAPI backend
  • Claude MCP integration with tool-use loop
  • 7 tools: weather, news, exchange rate, joke, stock, quote, send_email
  • Dockerized and clean architecture

🧠 Toolset

  1. get_weather: City-based weather summary
  2. get_news: Latest headlines per country
  3. get_exchange_rate: Currency conversion
  4. get_joke: Random joke
  5. get_stock_price: Current stock price
  6. get_quote: Inspirational quote
  7. send_email: Deliver message summary via email

āš™ļø Setup

git clone <your-repo>
cd mcp_server
cp .env.example .env
docker build -t mcp-server .
docker run -p 8080:8080 --env-file .env mcp-server

šŸ“© API

POST /mcp

{
  "message": "תביא לי את ×”×Ŗ×—×–×™×Ŗ ×‘×Ŗ×œ אביב ×•×Ŗ×©×œ×— לי למייל ben@example.com"
}

āœ… Requirements

fastapi
uvicorn
anthropic
httpx
python-dotenv

šŸ“ Structure

.
ā”œā”€ā”€ main.py
ā”œā”€ā”€ Dockerfile
ā”œā”€ā”€ .env.example
ā”œā”€ā”€ requirements.txt
ā”œā”€ā”€ src/
│   └── agents/
│       ā”œā”€ā”€ mcp_handler.py
│       ā”œā”€ā”€ tools.py
│       └── tool_logic.py
    

šŸ§‘ā€šŸ’» Author

Crafted by a backend professional in collaboration with Claude. ā¤ļø