Skip to main content

office_docs_mcp

CI License: MIT Python: 3.12+

LLM(대형 언어 모델)이 오피스 문서(Excel, Word, PowerPoint)를 안정적이고 토큰 효율적으로 읽고 쓸 수 있도록 지원하는 Model Context Protocol (MCP) 서버입니다.

버전 안내: 본 프로젝트는 현재 초기 개발 단계(0.y.z)이며, 사용자 피드백에 따라 도구 인터페이스가 지속적으로 개선되고 있습니다.


주요 기능

  • Excel (.xlsx, .xlsm):
    • excel_get_metadata: 시트 목록, 크기, 컬럼 요약 조회
    • excel_read_sheet: 지정된 행/열 범위(1-based)를 Markdown 테이블 또는 2차원 배열로 읽기 (수식/값 토글 지원)
    • excel_write_cell: 단일 셀(A1 등) 값/수식 쓰기
    • excel_write_range: 시작 셀부터 2차원 데이터 연속 기입
    • excel_append_rows: 시트 마지막 행 뒤에 데이터 추가
    • excel_create_workbook: 새 빈 엑셀 파일 생성
  • Word (.docx):
    • word_get_outline: 문서 헤딩(제목) 목록 및 단락/표 개수 조회
    • word_read_paragraphs: 단락 슬라이싱 읽기 (0-based 페이징)
    • word_read_table: 표 내용을 Markdown 테이블 또는 2차원 배열로 읽기
    • word_append_paragraph: 문서 끝에 단락/헤딩 추가 (헤딩 레벨 자동 처리)
    • word_append_table_row: 특정 표에 새 행 추가
    • word_write_table_cell: 특정 표의 셀 텍스트 수정
    • word_create_document: 새 워드 문서 생성
  • PowerPoint (.pptx):
    • ppt_get_outline: 전체 슬라이드 수 및 각 슬라이드 제목/셰이프 요약 조회
    • ppt_read_slide: 특정 슬라이드의 텍스트 상자 및 표 내용 추출
    • ppt_add_slide: 제목과 본문을 포함하는 새 슬라이드 추가 (플레이스홀더 부재 시 자동 텍스트박스 폴백)
    • ppt_update_slide_text: 슬라이드 내 특정 셰이프 텍스트 수정
    • ppt_create_presentation: 새 프레젠테이션 파일 생성

시작하기

1. 요구 사항

  • Python >= 3.12
  • uv 패키지 관리자

2. 설치 및 가상환경 동기화

uv sync --group dev

3. CLI 명령어

# MCP 서버 실행 (기본 Stdio 트랜스포트)
uv run office-docs-mcp serve

# SSE 트랜스포트로 실행
uv run office-docs-mcp serve --transport sse

# 등록된 MCP 도구 목록 확인 (사람 가독형)
uv run office-docs-mcp tools

# 기계 판독용 단일 라인 목록
uv run office-docs-mcp tools --plain

# 기계 판독용 JSON 스키마 덤프
uv run office-docs-mcp tools --json

# 설정 관리 서브명령어 (각 플랫폼 기본 경로 표준 지원)
# - Linux: ~/.config/office_docs_mcp/config.toml ($XDG_CONFIG_HOME)
# - macOS: ~/Library/Application Support/office_docs_mcp/config.toml
# - Windows: %APPDATA%/office_docs_mcp/config.toml
uv run office-docs-mcp config show                  # 현재 병합된 설정 전체 확인 (JSON)
uv run office-docs-mcp config show --toml           # TOML 형식으로 확인
uv run office-docs-mcp config init                  # 플랫폼 기본 경로에 config.toml 생성
uv run office-docs-mcp config init --local          # 현재 작업 디렉토리에 ./config.toml 생성
uv run office-docs-mcp config path                  # 플랫폼 기본 설정 파일 경로 확인 (--json 지원)
uv run office-docs-mcp config path --local          # 로컬 설정 파일 경로 확인
uv run office-docs-mcp config set logging.level DEBUG # 플랫폼 설정 파일 키 변경
uv run office-docs-mcp config set --local logging.level DEBUG # 로컬 설정 파일 키 변경
uv run office-docs-mcp config get logging.level       # 특정 설정 값 조회

# 셸 자동완성 스크립트 생성
uv run office-docs-mcp completion bash > /etc/bash_completion.d/office-docs-mcp

4. Claude Desktop / MCP 클라이언트 연동 설정 예시

claude_desktop_config.json 등에 아래와 같이 추가합니다:

{
  "mcpServers": {
    "office-docs": {
      "command": "uv",
      "args": [
        "--directory",
        "/path/to/office_docs_mcp",
        "run",
        "office-docs-mcp",
        "serve"
      ]
    }
  }
}

개발 및 테스트 (TDD)

# 전체 단위 및 통합 테스트 실행
uv run pytest -v

# 린트 및 코드 스타일 검증
uv run ruff check .
uv run ruff format --check .

자세한 기여 방법 및 개발 가이드는 아래 문서를 참고하세요:

Release files for office-docs-mcp 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for office-docs-mcp 0.1.0
File Size Uploaded
office_docs_mcp-0.1.0.tar.gz 90.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for office-docs-mcp 0.1.0
File Interpreter ABI Platform
office_docs_mcp-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 114.2 kB

Release files / office_docs_mcp-0.1.0.tar.gz

Download URL office_docs_mcp-0.1.0.tar.gz
Size 90.1 kB
Tags Source
SHA-256 checksum
How to use checksums
abd45c5bc230d31843f7a01a66027807c4c89337812219a32f495a1ab1abb317
BLAKE2b-256 checksum
How to use checksums
5c9fed56d06d717de58ffae0b5cce51eef72f231db41c156a2cc57b2e2973ce2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 19, 2026.

Transparency log

Release files / office_docs_mcp-0.1.0-py3-none-any.whl

Download URL office_docs_mcp-0.1.0-py3-none-any.whl
Size 24.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
23390ef4c9db33e7900cc659a5353ffb6c64dd39ddbc990dd5b0c3d188818daa
BLAKE2b-256 checksum
How to use checksums
929c8713e3f6d84020722c209f2685560681124d388c11054a0d55d758210e2b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 19, 2026.

Transparency log

Release history Release notifications | RSS feed

0.3.0

2 release files

0.2.0

2 release files

0.1.1

2 release files

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page