Skip to main content
Glama

MCP Chat

MCP Chat은 Anthropic API를 통해 AI 모델과 대화할 수 있는 명령줄 인터페이스 애플리케이션입니다. 이 애플리케이션은 문서 검색, 명령 기반 프롬프트, MCP(Model Control Protocol) 아키텍처를 통한 확장 가능한 도구 통합을 지원합니다.

필수 조건

  • Python 3.9+

  • Anthropic API 키

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 키를 누르면 모델과 대화할 수 있습니다.

문서 검색

@ 기호 뒤에 문서 ID를 사용하여 쿼리에 문서 내용을 포함하세요:

> Tell me about @deposition.md

명령

/ 접두사를 사용하여 MCP 서버에 정의된 명령을 실행하세요:

> /summarize deposition.md

Tab 키를 누르면 명령이 자동 완성됩니다.

개발

새 문서 추가

mcp_server.py 파일을 편집하여 docs 딕셔너리에 새 문서를 추가하세요.

Related MCP Connectors

Related MCP Servers

  • F
    license
    A
    quality
    D
    maintenance
    A 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.
    2
    -
  • F
    license
    Not graded
    quality
    D
    maintenance
    A 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.
    -