MCP Chat
MCP Chat
MCP Chat — это приложение с интерфейсом командной строки, которое обеспечивает интерактивное общение с ИИ-моделями через Google Gemini API. Приложение поддерживает поиск документов, командные запросы и расширяемые интеграции инструментов через архитектуру MCP (Model Control Protocol).
Предварительные требования
Python 3.9+
API-ключ Google Gemini
Related MCP server: MCP Chat
Настройка
Шаг 1: Настройка переменных окружения
Создайте или отредактируйте файл
.envв корне проекта и убедитесь, что следующие переменные заданы корректно:
GEMINI_API_KEY="" # Enter your Google Gemini API key
GEMINI_MODEL="gemini-3.6-flash" # The Gemini model to useВы можете сгенерировать API-ключ в Google AI Studio.
Шаг 2: Установка зависимостей
Вариант 1: Настройка с помощью uv (рекомендуется)
uv — это быстрый установщик и резолвер пакетов Python.
Установите uv, если он ещё не установлен:
pip install uvСоздайте и активируйте виртуальное окружение:
uv venv
source .venv/bin/activate # On Windows: .venv\Scripts\activateУстановите зависимости:
uv pip install -e .Запустите проект
uv run main.pyВариант 2: Настройка без uv
Создайте и активируйте виртуальное окружение:
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activateУстановите зависимости:
pip install google-genai python-dotenv prompt-toolkit "mcp[cli]==1.8.0"Запустите проект
python main.pyИспользование
Базовое взаимодействие
Просто введите сообщение и нажмите Enter, чтобы общаться с моделью.
Поиск документов
Используйте символ @ с идентификатором документа, чтобы включить содержимое документа в запрос:
> Tell me about @deposition.mdКоманды
Используйте префикс / для выполнения команд, определённых на MCP-сервере:
> /summarize deposition.mdКоманды будут автоматически дополняться при нажатии Tab.
Разработка
Добавление новых документов
Отредактируйте файл mcp_server.py, чтобы добавить новые документы в словарь docs.
Реализация функций MCP
Чтобы полностью реализовать функции MCP:
Завершите TODO в
mcp_server.pyРеализуйте недостающую функциональность в
mcp_client.py
Линтинг и проверка типов
Проверки линтера и типов не реализованы.
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
- FlicenseNot gradedqualityDmaintenanceA command-line interface application for interactive chat with AI models via the Anthropic API. It supports document retrieval, command-based prompts, and extensible tool integrations through the MCP architecture.
- FlicenseNot gradedqualityDmaintenanceA command-line interface application enabling interactive chat with AI models via the Anthropic API. It supports document retrieval, command-based prompts, and extensible tool integrations through the MCP architecture.
- FlicenseNot gradedqualityDmaintenanceA command-line interface application that enables interactive chat with AI models via the Anthropic API, supporting document retrieval and command-based prompts through the MCP architecture.
- FlicenseNot gradedqualityCmaintenanceA CLI chat application enabling interactive conversations with AI models via the Anthropic API, with document retrieval and command-based prompt support through the MCP architecture.
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Search your AI chat history (ChatGPT, Claude, Codex) from any MCP client. Remote, private, read-only
Real-time chat hub for AI agents — Claude Code, Cursor, Cline, Codex over MCP or REST.
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/SDias14/mcp-server-training-linkedin-learning'
If you have feedback or need assistance with the MCP directory API, please join our Discord server