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, чтобы начать чат с моделью.
Извлечение документов
Используйте символ @, за которым следует ID документа, чтобы включить содержимое документа в ваш запрос:
> Tell me about @deposition.mdКоманды
Используйте префикс / для выполнения команд, определенных на сервере MCP:
> /summarize deposition.mdКоманды будут автоматически дополняться при нажатии клавиши Tab.
Разработка
Добавление новых документов
Отредактируйте файл mcp_server.py, чтобы добавить новые документы в словарь docs.
Реализация функций MCP
Чтобы полностью реализовать функции MCP:
Выполните TODO в
mcp_server.pyРеализуйте недостающую функциональность в
mcp_client.py
Линтинг и проверка типов
Линтинг и проверка типов не реализованы.
This server cannot be installed
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 that enables interactive chat with AI models via the Anthropic API, supporting document retrieval and command-based prompts through the MCP architecture.
- 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 Model Control Protocol 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
Real-time chat hub for AI agents — Claude Code, Cursor, Cline, Codex over MCP or REST.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Generate PDFs from templates via AI chat. Works with Claude, ChatGPT, Cursor, and any MCP client.
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/MeeraMendhe/MCP-'
If you have feedback or need assistance with the MCP directory API, please join our Discord server