Skip to main content
Glama

Python MCP Agent Chatbot

An Agentic AI classroom project built completely in Python. Groq handles model reasoning while a local MCP server supplies tools.

Architecture

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

Related MCP server: mcp-datecalc

Files

  • app.py — FastAPI web backend, Groq agent loop, and MCP client

  • mcp_server.py — Python MCP server containing three tools

  • test_mcp.py — MCP discovery and tool-call test

  • index.html — browser chat interface

  • pyproject.toml — Python dependencies

Run on Windows

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

Open http://127.0.0.1:8000.

MCP ko Groq API call ke baghair test karne ke liye:

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

Try these questions:

  • 25 * 8 + 10 calculate karo

  • Karachi mein abhi kya time hai?

  • Ahmed ki attendance kya hai?

MCP flow

  1. Functions in mcp_server.py are registered with @mcp.tool().

  2. app.py launches that MCP server as a local Python subprocess using stdio.

  3. The MCP client calls list_tools() so Groq can see the available tools.

  4. Groq selects a tool and generates its arguments.

  5. The MCP client calls call_tool() and returns the tool result to Groq.

  6. Groq converts the result into a natural-language answer.

The .env file contains the Groq key and is intentionally excluded from Git.

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