Skip to main content
Glama
MCP WordPress CrunchTools

MCP WordPress CrunchTools

by crunchtools

MCP WordPress CrunchTools

WordPress 콘텐츠 관리를 위한 보안 MCP(Model Context Protocol) 서버입니다. 자신의 작업에 대해 글을 게시하는 개발자를 위해 설계되었습니다.

개요

이 MCP 서버는 다음과 같은 특징을 갖도록 설계되었습니다:

  • 기본적으로 안전(Secure by default) - 포괄적인 입력 검증, 자격 증명 보호, SSRF 방지

  • 타사 서비스 없음 - stdio를 통해 로컬에서 실행되며, 자격 증명이 머신을 벗어나지 않습니다

  • 크로스 플랫폼 - Linux, macOS, Windows에서 작동합니다

  • 자동 업데이트 - GitHub Actions가 CVE를 모니터링하고 의존성을 업데이트합니다

  • 컨테이너화 - quay.io/crunchtools/mcp-wordpress에서 사용 가능

Related MCP server: TypeScript WordPress MCP Server

명명 규칙

구성 요소

이름

GitHub 저장소

crunchtools/mcp-wordpress

컨테이너

quay.io/crunchtools/mcp-wordpress

Python 패키지 (PyPI)

mcp-wordpress-crunchtools

CLI 명령

mcp-wordpress-crunchtools

모듈 임포트

mcp_wordpress_crunchtools

기능

  • 30개 도구 - 게시물, 페이지, 미디어, 댓글용

  • 보안 중심: 자격 증명 보호, 입력 검증, SSRF 방지

  • 개발자 워크플로우: 예약 게시, 개정판, 검색

  • 쉬운 통합: Claude Code 및 기타 MCP 클라이언트와 작동

설치

uvx 사용 (권장)

uvx mcp-wordpress-crunchtools

pip 사용

pip install mcp-wordpress-crunchtools
mcp-wordpress-crunchtools

컨테이너 사용

# Create a shared upload directory (required before first run)
mkdir -p ~/.local/share/mcp-uploads-downloads

podman run -v ~/.local/share/mcp-uploads-downloads:/tmp/mcp-uploads:z \
  -e WORDPRESS_URL=https://example.com \
  -e WORDPRESS_USERNAME=admin \
  -e WORDPRESS_APP_PASSWORD='xxxx xxxx xxxx xxxx' \
  quay.io/crunchtools/mcp-wordpress

SELinux 참고: :Z(대문자, 전용) 대신 :z(소문자, 공유)를 사용하세요. MCP 서버는 장기 실행 stdio 프로세스로 작동합니다. :Z를 사용하면 컨테이너 시작 후 디렉터리에 복사된 파일에 컨테이너의 전용 MCS 레이블이 없어 컨테이너 내부에서 보이지 않게 됩니다. :z 플래그는 모든 컨테이너와 호스트가 읽고 쓸 수 있는 공유 container_file_t 컨텍스트를 설정합니다.

팁: 여러 MCP 컨테이너 서버(예: mcp-wordpress 및 mcp-gemini)에서 동일한 공유 디렉터리(~/.local/share/mcp-uploads-downloads/)를 사용하면 생성된 파일을 복사하지 않고도 즉시 업로드에 사용할 수 있습니다.

소스에서

git clone https://github.com/crunchtools/mcp-wordpress.git
cd mcp-wordpress
uv sync --all-extras
uv run mcp-wordpress-crunchtools

구성

다음 환경 변수를 설정하세요:

변수

설명

예시

WORDPRESS_URL

WordPress 사이트 URL

https://example.com

WORDPRESS_USERNAME

WordPress 사용자 이름

admin

WORDPRESS_APP_PASSWORD

애플리케이션 비밀번호

xxxx xxxx xxxx xxxx

MCP_UPLOAD_DIR

컨테이너 내 업로드 디렉터리 (선택 사항)

/tmp/mcp-uploads (기본값)

애플리케이션 비밀번호 생성

  1. WordPress 관리자에 로그인

  2. 사용자 → 프로필로 이동

  3. 애플리케이션 비밀번호까지 스크롤

  4. 이름(예: "MCP Server")을 입력하고 새로 추가 클릭

  5. 생성된 비밀번호 복사 (한 번만 표시됨)

Claude Code와 함께 사용

uvx 사용 (권장)

claude mcp add mcp-wordpress-crunchtools \
    --env WORDPRESS_URL=https://example.com \
    --env WORDPRESS_USERNAME=admin \
    --env WORDPRESS_APP_PASSWORD="xxxx xxxx xxxx xxxx" \
    -- uvx mcp-wordpress-crunchtools

pip 사용

pip install mcp-wordpress-crunchtools

claude mcp add mcp-wordpress-crunchtools \
    --env WORDPRESS_URL=https://example.com \
    --env WORDPRESS_USERNAME=admin \
    --env WORDPRESS_APP_PASSWORD="xxxx xxxx xxxx xxxx" \
    -- mcp-wordpress-crunchtools

컨테이너 사용

# Create a shared upload directory (required before first run)
mkdir -p ~/.local/share/mcp-uploads-downloads

claude mcp add mcp-wordpress-crunchtools \
    --env WORDPRESS_URL=https://example.com \
    --env WORDPRESS_USERNAME=admin \
    --env WORDPRESS_APP_PASSWORD="xxxx xxxx xxxx xxxx" \
    -- podman run -i --rm \
        -v ~/.local/share/mcp-uploads-downloads:/tmp/mcp-uploads:z \
        -e WORDPRESS_URL \
        -e WORDPRESS_USERNAME \
        -e WORDPRESS_APP_PASSWORD \
        quay.io/crunchtools/mcp-wordpress

사용 가능한 도구

사이트 도구

도구

설명

wordpress_get_site_info

사이트 제목, 설명, URL, 시간대 가져오기

wordpress_test_connection

API 자격 증명이 작동하는지 확인

게시물 도구

도구

설명

wordpress_list_posts

필터링으로 게시물 목록 (상태, 카테고리, 검색)

wordpress_get_post

ID로 단일 게시물 가져오기 (전체 콘텐츠 포함)

wordpress_search_posts

키워드로 게시물 검색

wordpress_create_post

새 게시물 작성 (예약 지원)

wordpress_update_post

기존 게시물 업데이트

wordpress_delete_post

게시물 삭제/휴지통으로 이동

wordpress_list_revisions

게시물의 개정판 목록

wordpress_get_revision

특정 개정판 콘텐츠 가져오기

wordpress_list_categories

사용 가능한 카테고리 목록

wordpress_list_tags

사용 가능한 태그 목록

페이지 도구

도구

설명

wordpress_list_pages

필터링으로 페이지 목록

wordpress_get_page

ID로 단일 페이지 가져오기

wordpress_create_page

새 페이지 작성

wordpress_update_page

기존 페이지 업데이트

wordpress_delete_page

페이지 삭제/휴지통으로 이동

wordpress_list_page_revisions

페이지 개정판 목록

미디어 도구

도구

설명

wordpress_list_media

미디어 항목 목록

wordpress_get_media

미디어 항목 세부 정보 가져오기

wordpress_upload_media

로컬 경로에서 파일 업로드

wordpress_update_media

미디어 메타데이터 업데이트

wordpress_delete_media

미디어 항목 삭제

wordpress_get_media_url

미디어의 공개 URL 가져오기

댓글 도구

도구

설명

wordpress_list_comments

필터링으로 댓글 목록

wordpress_get_comment

단일 댓글 가져오기

wordpress_create_comment

게시물에 댓글 추가

wordpress_update_comment

댓글 콘텐츠/상태 업데이트

wordpress_delete_comment

댓글 삭제

wordpress_moderate_comment

승인, 보류, 스팸, 휴지통 처리

예시

초안 게시물 작성

Create a new WordPress post titled "My Technical Article" with the content below. Keep it as a draft.

게시물 예약

Update post ID 123 to publish on December 25, 2024 at 10:00 AM.

이미지 업로드

Upload this image to WordPress and set the alt text to "Architecture diagram".

댓글 찾기 및 중재

List all comments in "hold" status and approve the legitimate ones.

보안

  • 자격 증명 보호: 모든 자격 증명은 SecretStr로 저장되며, 절대 로그에 기록되지 않음

  • SSRF 방지: REST API 경로가 하드코딩되어 있어 재정의할 수 없음

  • 입력 검증: 모든 입력은 Pydantic 모델을 통해 검증됨

  • 속도 제한: WordPress 속도 제한을 원활하게 처리

  • TLS 강제: 모든 요청은 인증서 검증과 함께 HTTPS 사용

  • 크기 제한: 메모리 문제 방지를 위해 응답 크기를 10MB로 제한

  • 시간 초과: 모든 요청은 30초 후 시간 초과

개발

# Install dev dependencies
uv sync --all-extras

# Run tests
uv run pytest

# Run linting
uv run ruff check src tests

# Run type checking
uv run mypy src

# Format code
uv run ruff format src tests

라이선스

AGPL-3.0-or-later

크레딧

crunchtools.com에서 제작

Available Tools

33 tools
wordpress_create_commentWordpress Create CommentC

Create a new comment on a WordPress post.

Inputs: post (required), content (required), parent, author_name, +1 more. Returns: object

wordpress_create_pageWordpress Create PageC

Create a new WordPress page.

Inputs: title (required), content (required), date, slug, +6 more. Returns: object

wordpress_create_postWordpress Create PostC

Create a new WordPress post.

Inputs: title (required), content (required), date, slug, +6 more. Returns: object

wordpress_delete_commentWordpress Delete CommentB

Delete or trash a WordPress comment.

Inputs: comment_id (required), force. Returns: object

wordpress_delete_mediaWordpress Delete MediaC

Delete a WordPress media item.

Inputs: media_id (required), force. Returns: object

wordpress_delete_pageWordpress Delete PageC

Delete or trash a WordPress page.

Inputs: page_id (required), force. Returns: object

wordpress_delete_postWordpress Delete PostC

Delete or trash a WordPress post.

Inputs: post_id (required), force. Returns: object

wordpress_edit_draftWordpress Edit DraftA

Replace text in a draft or pending WordPress post's source. Refuses any other status.

Inputs: post_id (required), new_text (required), old_text (required), replace_all, +1 more. Returns: object

wordpress_edit_pageWordpress Edit PageA

Replace text in a WordPress page's source, without resending the page.

Inputs: page_id (required), new_text (required), old_text (required), replace_all, +1 more. Returns: object

wordpress_edit_postWordpress Edit PostA

Replace text in a WordPress post's source, without resending the post.

Inputs: post_id (required), new_text (required), old_text (required), replace_all, +1 more. Returns: object

wordpress_get_commentWordpress Get CommentB
Read-only

Get a single WordPress comment by ID.

Inputs: comment_id (required). Returns: object

wordpress_get_mediaWordpress Get MediaB
Read-only

Get a single WordPress media item by ID.

Inputs: media_id (required). Returns: object

wordpress_get_media_urlWordpress Get Media UrlB
Read-only

Get the public URL for a WordPress media item.

Inputs: media_id (required), size. Returns: object

wordpress_get_pageWordpress Get PageB
Read-only

Get a single WordPress page by ID with its saved source.

Inputs: page_id (required). Returns: object

wordpress_get_postWordpress Get PostA
Read-only

Get a single WordPress post by ID with its saved source.

Inputs: post_id (required). Returns: object

wordpress_get_revisionWordpress Get RevisionC
Read-only

Get a specific revision of a WordPress post.

Inputs: post_id (required), revision_id (required). Returns: object

wordpress_get_site_infoWordpress Get Site InfoA
Read-only

Get WordPress site information.

Returns site title, description, URL, timezone, and other settings.

Inputs: no named parameters. Returns: object

wordpress_list_categoriesWordpress List CategoriesC
Read-only

List available WordPress categories.

Inputs: page, search, per_page. Returns: object

wordpress_list_commentsWordpress List CommentsC
Read-only

List WordPress comments with filtering.

Inputs: page, post, order, search, +3 more. Returns: object

wordpress_list_mediaWordpress List MediaC
Read-only

List WordPress media items with filtering.

Inputs: page, order, search, orderby, +3 more. Returns: object

wordpress_list_page_revisionsWordpress List Page RevisionsB
Read-only

List revisions for a WordPress page.

Inputs: page_id (required). Returns: object

wordpress_list_pagesWordpress List PagesC
Read-only

List WordPress pages with filtering and pagination.

Inputs: page, order, parent, search, +3 more. Returns: object

wordpress_list_postsWordpress List PostsC
Read-only

List WordPress posts with filtering and pagination.

Inputs: page, tags, order, search, +4 more. Returns: object

wordpress_list_revisionsWordpress List RevisionsB
Read-only

List revisions for a WordPress post.

Inputs: post_id (required). Returns: object

wordpress_list_tagsWordpress List TagsC
Read-only

List available WordPress tags.

Inputs: page, search, per_page. Returns: object

wordpress_moderate_commentWordpress Moderate CommentC

Moderate a WordPress comment by changing its status.

Inputs: action (required), comment_id (required). Returns: object

wordpress_search_postsWordpress Search PostsA
Read-only

Search WordPress posts by keyword in title and content.

Inputs: keyword (required), page, per_page. Returns: object

wordpress_test_connectionWordpress Test ConnectionA
Read-only

Test connection to WordPress REST API.

Verifies API credentials and returns connection status.

Inputs: no named parameters. Returns: object

wordpress_update_commentWordpress Update CommentC

Update an existing WordPress comment.

Inputs: comment_id (required), status, content. Returns: object

wordpress_update_mediaWordpress Update MediaC

Update WordPress media item metadata.

Inputs: media_id (required), title, caption, alt_text, +1 more. Returns: object

wordpress_update_pageWordpress Update PageA

Update an existing WordPress page. To change part of the content, use edit_page.

Inputs: page_id (required), date, slug, title, +8 more. Returns: object

wordpress_update_postWordpress Update PostB

Update an existing WordPress post. To change part of the content, use edit_post.

Inputs: post_id (required), date, slug, tags, +8 more. Returns: object

wordpress_upload_mediaWordpress Upload MediaA

Upload a media file to WordPress from a local file path.

The file is read directly from disk, avoiding large base64 payloads over the MCP protocol. Provide an absolute path to the file.

CONTAINER NOTE: When running as a container, the file path refers to the container filesystem, not the host. Files must be placed in ~/.local/share/mcp-wordpress/uploads/ on the host (mounted to /tmp/mcp-uploads/ inside the container) to be accessible.

Inputs: file_path (required), title, caption, alt_text, +1 more. Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 33 tools

    Disambiguation4/5

    Most tools map cleanly to a distinct resource and action, especially across posts, pages, media, and comments. The main ambiguity is among update_post/edit_post/edit_draft and update_page/edit_page, which all modify content, though the descriptions distinguish full updates from source-text replacement.

    Naming Consistency5/5

    All tools consistently use the wordpress_ prefix followed by snake_case verb_noun naming, such as list_posts, create_page, delete_comment, and moderate_comment. Names are predictable and readable throughout the set.

    Tool Count2/5

    At 33 tools, the surface is heavy for a single MCP server and exceeds the rubric's 25+ threshold for too many tools. The broad WordPress content domain justifies many operations, but the set could likely consolidate overlapping post/page edit variants and media helpers.

    Completeness4/5

    Core content lifecycle coverage is strong for posts, pages, media, and comments, including revisions and comment moderation. Remaining gaps include no get-page-revision operation, read-only categories/tags, and no broader WordPress admin tools such as users or settings.

    Maintenance

    ActivityActive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers