mcp_server
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 karoKarachi mein abhi kya time hai?Ahmed ki attendance kya hai?
Поток MCP
Функции в
mcp_server.pyрегистрируются с помощью@mcp.tool().app.pyзапускает этот MCP-сервер как локальный подпроцесс Python, используя stdio.MCP-клиент вызывает
list_tools(), чтобы Groq мог видеть доступные инструменты.Groq выбирает инструмент и генерирует его аргументы.
MCP-клиент вызывает
call_tool()и возвращает результат инструмента в Groq.Groq преобразует результат в ответ на естественном языке.
Файл .env содержит ключ Groq и намеренно исключён из Git.
Maintenance
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
- FlicenseBqualityCmaintenanceProvides 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.74
- AlicenseNot gradedqualityCmaintenanceEnables users to perform date arithmetic, compute differences, add durations, and retrieve calendar facts via natural language or direct tool calls.9MIT
- AlicenseNot gradedqualityCmaintenanceEnables LLMs to fetch real-time weather data for any city and perform basic arithmetic operations like addition.MIT
- FlicenseNot gradedqualityCmaintenanceEnables an AI assistant to help students by providing tools for math calculations, attendance tracking, marks analysis, reading PDF notes, searching lecture notes, and checking college regulations.
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.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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