MCP Chat
MCP Chat
MCP Chat — это интерфейс командной строки, который обеспечивает интерактивное общение с моделями ИИ через API Anthropic. Приложение поддерживает извлечение документов, подсказки на основе команд и расширяемые интеграции инструментов через архитектуру MCP (Model Control Protocol).
Предварительные требования
Python 3.9+
Ключ API Anthropic
Related MCP server: MCP Chat
Настройка
Шаг 1: Настройка переменных окружения
Создайте или отредактируйте файл
.envв корне проекта и убедитесь, что следующие переменные заданы корректно:
ANTHROPIC_API_KEY="" # Enter your Anthropic API secret keyШаг 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 anthropic 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
Проверка lint и типов
Проверки lint и типов не реализованы.
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 that enables interactive chat with AI models through the Anthropic API, supporting document retrieval, command-based prompts, and extensible tool integrations.
- FlicenseBqualityDmaintenanceA command-line interface application that enables interactive chat with AI models through the Anthropic API, supporting document retrieval, command-based prompts, and extensible tool integrations.2
- FlicenseNot gradedqualityDmaintenanceA command-line interface application that enables interactive chat with AI models through the Anthropic API, supporting document retrieval, command-based prompts, and extensible tool integrations.
Related MCP Connectors
Run AI customer support from your terminal: conversations, knowledge base, and chat widget.
Persistent context for Claude. Your AI always knows your projects and next actions across sessions.
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/dani-tc/anthropic-mcp-chat'
If you have feedback or need assistance with the MCP directory API, please join our Discord server