Skip to main content
Glama

Python MCP Agent Chatbot

Ein agentisches KI-Projekt für den Unterricht, vollständig in Python umgesetzt. Groq übernimmt das Reasoning des Modells, während ein lokaler MCP-Server die Tools bereitstellt.

Architektur

Browser -> FastAPI (Python) -> Groq -> MCP Client -> MCP Server (Python) -> Tool

Related MCP server: mcp-datecalc

Dateien

  • app.py — FastAPI-Web-Backend, Groq-Agent-Schleife und MCP-Client

  • mcp_server.py — Python-MCP-Server mit drei Tools

  • test_mcp.py — MCP-Discovery- und Tool-Aufruf-Test

  • index.html — Browser-Chat-Oberfläche

  • pyproject.toml — Python-Abhängigkeiten

Ausführen unter Windows

uv sync --cache-dir .uv-cache
uv run --cache-dir .uv-cache uvicorn app:app --reload

Öffne http://127.0.0.1:8000.

Um MCP ohne Groq-API-Aufruf zu testen:

uv run --cache-dir .uv-cache python test_mcp.py

Probiere diese Fragen aus:

  • 25 * 8 + 10 calculate karo

  • Karachi mein abhi kya time hai?

  • Ahmed ki attendance kya hai?

MCP-Ablauf

  1. Funktionen in mcp_server.py werden mit @mcp.tool() registriert.

  2. app.py startet diesen MCP-Server als lokalen Python-Subprozess über stdio.

  3. Der MCP-Client ruft list_tools() auf, damit Groq die verfügbaren Tools sehen kann.

  4. Groq wählt ein Tool aus und generiert dessen Argumente.

  5. Der MCP-Client ruft call_tool() auf und gibt das Tool-Ergebnis an Groq zurück.

  6. Groq wandelt das Ergebnis in eine natürlichsprachliche Antwort um.

Die Datei .env enthält den Groq-Schlüssel und ist absichtlich von Git ausgeschlossen.

Install Server
F
license - not found
A
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

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

Related MCP Servers

  • F
    license
    B
    quality
    C
    maintenance
    Provides computational tools for systematic reasoning, including boolean evaluation, date arithmetic, object counting, state tracking, and format validation, to enhance agent capabilities and eliminate calculation errors in reasoning tasks.
    7
    4
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables users to perform date arithmetic, compute differences, add durations, and retrieve calendar facts via natural language or direct tool calls.
    9
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables LLMs to fetch real-time weather data for any city and perform basic arithmetic operations like addition.
    MIT

View all related MCP servers

Related MCP Connectors

  • Wall-clock awareness for LLM agents. Two tools: elapsed-time-between-turns + day rollover detection.

  • Gateway between LLM agents and world data through eight tools and a bundled endpoint catalog.

  • 500+ deterministic tools for AI agents: math, conversion, validation, hashing, encoding, date/time.

View all MCP Connectors

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/massssssssssna/MCP-tested'

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