Skip to main content
Glama

Python MCP Agent Chatbot

Проект для класса по агентному ИИ, полностью написанный на Python. Groq отвечает за рассуждения модели, а локальный MCP-сервер предоставляет инструменты.

Архитектура

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

Related MCP server: mcp-datecalc

Файлы

  • app.py — веб-бэкенд FastAPI, цикл агента Groq и MCP-клиент

  • mcp_server.py — Python MCP-сервер с тремя инструментами

  • test_mcp.py — тест обнаружения MCP и вызова инструментов

  • index.html — интерфейс чата в браузере

  • pyproject.toml — зависимости Python

Запуск на Windows

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

Откройте http://127.0.0.1:8000.

Чтобы протестировать MCP без вызова Groq API:

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

Попробуйте эти вопросы:

  • 25 * 8 + 10 calculate karo

  • Karachi mein abhi kya time hai?

  • Ahmed ki attendance kya hai?

Поток MCP

  1. Функции в mcp_server.py регистрируются с помощью @mcp.tool().

  2. app.py запускает этот MCP-сервер как локальный подпроцесс Python, используя stdio.

  3. MCP-клиент вызывает list_tools(), чтобы Groq мог видеть доступные инструменты.

  4. Groq выбирает инструмент и генерирует его аргументы.

  5. MCP-клиент вызывает call_tool() и возвращает результат инструмента в Groq.

  6. Groq преобразует результат в ответ на естественном языке.

Файл .env содержит ключ Groq и намеренно исключён из 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