Skip to main content
Glama

MCP Chat

MCP Chat — это интерфейс командной строки, который обеспечивает интерактивное общение с моделями ИИ через API Anthropic. Приложение поддерживает извлечение документов, подсказки на основе команд и расширяемые интеграции инструментов через архитектуру MCP (Model Control Protocol).

Предварительные требования

  • Python 3.9+

  • Ключ API Anthropic

Related MCP server: MCP Chat

Настройка

Шаг 1: Настройка переменных окружения

  1. Создайте или отредактируйте файл .env в корне проекта и убедитесь, что следующие переменные заданы корректно:

ANTHROPIC_API_KEY=""  # Enter your Anthropic API secret key

Шаг 2: Установка зависимостей

Вариант 1: Настройка с помощью uv (рекомендуется)

uv — это быстрый установщик и менеджер пакетов Python.

  1. Установите uv, если он ещё не установлен:

pip install uv
  1. Создайте и активируйте виртуальное окружение:

uv venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate
  1. Установите зависимости:

uv pip install -e .
  1. Запустите проект

uv run main.py

Вариант 2: Настройка без uv

  1. Создайте и активируйте виртуальное окружение:

python -m venv .venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate
  1. Установите зависимости:

pip install anthropic python-dotenv prompt-toolkit "mcp[cli]==1.8.0"
  1. Запустите проект

python main.py

Использование

Базовое взаимодействие

Просто введите сообщение и нажмите Enter, чтобы начать общение с моделью.

Извлечение документов

Используйте символ @, за которым следует идентификатор документа, чтобы включить содержимое документа в ваш запрос:

> Tell me about @deposition.md

Команды

Используйте префикс / для выполнения команд, определённых в MCP-сервере:

> /summarize deposition.md

Команды будут автоматически дополняться при нажатии клавиши Tab.

Разработка

Добавление новых документов

Отредактируйте файл mcp_server.py, чтобы добавить новые документы в словарь docs.

Реализация функций MCP

Для полной реализации функций MCP:

  1. Завершите задачи TODO в mcp_server.py

  2. Реализуйте недостающую функциональность в mcp_client.py

Проверка lint и типов

Проверки lint и типов не реализованы.

Install Server
F
license - not found
B
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
    Not graded
    quality
    D
    maintenance
    A 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.
  • F
    license
    Not graded
    quality
    D
    maintenance
    A 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.
  • F
    license
    B
    quality
    D
    maintenance
    A 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
  • F
    license
    Not graded
    quality
    D
    maintenance
    A 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.

View all related MCP servers

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.

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/dani-tc/anthropic-mcp-chat'

If you have feedback or need assistance with the MCP directory API, please join our Discord server