WordPress MCP Server

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Integrations

  • Enables interaction with WordPress sites through the REST API, supporting content management, post operations, user management, plugin administration, comment moderation, and site configuration across multiple WordPress installations.

워드프레스 MCP 서버

AI 어시스턴트가 WordPress REST API를 통해 WordPress 사이트와 상호 작용할 수 있도록 하는 모델 컨텍스트 프로토콜(MCP) 서버입니다. 안전한 인증을 통해 여러 WordPress 사이트를 지원하며, 콘텐츠 관리, 게시 작업 및 자연어를 통한 사이트 구성이 가능합니다.

특징

  • 다중 사이트 지원 : 여러 WordPress 사이트에 동시에 연결
  • REST API 통합 : WordPress REST API 엔드포인트에 대한 전체 액세스
  • 보안 인증 : 보안 API 액세스를 위해 애플리케이션 암호를 사용합니다.
  • 동적 엔드포인트 검색 : 각 사이트에 사용 가능한 엔드포인트를 자동으로 매핑합니다.
  • 유연한 작업 : GET, POST, PUT, DELETE 및 PATCH 메서드 지원
  • 오류 처리 : 의미 있는 메시지를 통한 우아한 오류 처리
  • 간단한 구성 : 유지 관리가 쉬운 JSON 구성 파일

설치

Smithery를 통해 설치

Smithery를 통해 Claude Desktop용 WordPress Server를 자동으로 설치하려면:

지엑스피1

수동 설치

npm install server-wp-mcp

도구 참조

wp_discover_endpoints

WordPress 사이트에서 사용 가능한 모든 REST API 엔드포인트를 매핑합니다.

인수:

{ "site": { "type": "string", "description": "Site alias (as defined in configuration)", "required": true } }

반환: 사용 가능한 엔드포인트와 해당 메서드 및 네임스페이스 목록입니다.

wp_call_endpoint

WordPress 사이트에 REST API 요청을 실행합니다.

인수:

{ "site": { "type": "string", "description": "Site alias", "required": true }, "endpoint": { "type": "string", "description": "API endpoint path", "required": true }, "method": { "type": "string", "enum": ["GET", "POST", "PUT", "DELETE", "PATCH"], "description": "HTTP method", "default": "GET" }, "params": { "type": "object", "description": "Request parameters or body data", "required": false } }

구성

애플리케이션 비밀번호 받기

  1. WordPress 관리자 대시보드에 로그인하세요
  2. 사용자 → 프로필로 이동
  3. "애플리케이션 비밀번호" 섹션으로 스크롤하세요.
  4. 애플리케이션의 이름을 입력하세요(예: "MCP 서버")
  5. "새로운 애플리케이션 비밀번호 추가"를 클릭하세요
  6. 생성된 비밀번호를 복사하세요(다시는 볼 수 없습니다)

참고: 애플리케이션 비밀번호에는 WordPress 5.6 이상과 HTTPS가 필요합니다.

구성 파일 설정

WordPress 사이트 세부정보로 JSON 구성 파일(예: wp-sites.json )을 만듭니다.

{ "myblog": { "URL": "https://myblog.com", "USER": "yourusername", "PASS": "abcd 1234 efgh 5678" }, "testsite": { "URL": "https://test.example.com", "USER": "anotherusername", "PASS": "wxyz 9876 lmno 5432" } }

각 사이트 구성에는 다음이 필요합니다.

  • URL : WordPress 사이트 URL(http:// 또는 https://를 포함해야 함)
  • USER : WordPress 사용자 이름
  • PASS : 애플리케이션 비밀번호 (공백은 자동으로 제거됩니다)

구성 키(예: "myblog", "testsite")는 서버와 상호 작용할 때 사용할 사이트 별칭이 됩니다.

Claude Desktop과 함께 사용

claude_desktop_config.json 에 다음을 추가하세요:

{ "mcpServers": { "wordpress": { "command": "node", "args": ["path/to/server/dist/index.js"], "env": { "WP_SITES_PATH": "/absolute/path/to/wp-sites.json" } } } }

WP_SITES_PATH 환경 변수는 구성 파일의 절대 경로를 가리켜야 합니다.

사용 예

구성이 완료되면 Claude에게 다양한 WordPress 작업을 수행하도록 요청할 수 있습니다.

게시물 목록 및 쿼리

Can you show me all posts from myblog published in the last month?
Find all posts on testsite tagged with "technology" and "AI"
Show me draft posts from myblog that need review

콘텐츠 생성 및 편집

Create a new draft post on testsite titled "The Future of AI" with these key points: [points]
Update the featured image on myblog's latest post about machine learning
Add a new category called "Tech News" to myblog

댓글 관리

Show me all pending comments on myblog's latest post
Find comments from testsite that might be spam
List the most engaged commenters on myblog

플러그인 관리

What plugins are currently active on myblog?
Check if any plugins on testsite need updates
Tell me about the security plugins installed on myblog

사용자 관리

Show me all users with editor role on testsite
Create a new author account on myblog
Update user roles and permissions on testsite

사이트 설정 및 구성

What theme is currently active on myblog?
Check the permalink structure on testsite
Show me the current media library settings on myblog

유지 관리 및 진단

Check if there are any broken links on myblog
Show me the PHP version and other system info for testsite
List any pending database updates on myblog

오류 처리

서버는 다음을 포함한 일반적인 오류를 처리합니다.

  • 잘못된 구성 파일 경로 또는 형식입니다.
  • 잘못된 사이트 구성
  • 인증 실패
  • 누락되었거나 잘못된 엔드포인트
  • API 속도 제한
  • 네트워크 오류

모든 오류는 문제 진단에 도움이 되는 설명 메시지와 함께 반환됩니다.

보안 고려 사항

  • wp-sites.json 파일을 안전하게 보관하고 버전 제어에 커밋하지 마십시오.
  • 프로덕션에서 민감한 데이터에 환경 변수를 사용하는 것을 고려하세요.
  • 공개 디렉토리 외부에 구성 파일을 저장합니다.
  • 모든 WordPress 사이트에 HTTPS를 사용하세요
  • 정기적으로 애플리케이션 비밀번호를 순환하세요
  • 사용자 역할을 할당할 때 최소 권한 원칙을 따르세요.

종속성

  • @modelcontextprotocol/sdk - MCP 프로토콜 구현
  • axios - API 요청을 위한 HTTP 클라이언트

특허

MIT

-
security - not tested
A
license - permissive license
-
quality - not tested

AI 어시스턴트가 WordPress REST API를 통해 WordPress 사이트와 상호 작용할 수 있도록 지원합니다. 안전한 인증을 통해 여러 WordPress 사이트를 지원하여 콘텐츠 관리, 게시 작업 및 자연어 기반 사이트 구성을 지원합니다.

  1. Features
    1. Installation
      1. Installing via Smithery
      2. Manual Installation
    2. Tools Reference
      1. wp_discover_endpoints
      2. wp_call_endpoint
    3. Configuration
      1. Getting an Application Password
      2. Configuration File Setup
      3. Usage with Claude Desktop
      4. Example Usage
    4. Error Handling
      1. Security Considerations
        1. Dependencies
          1. License
            ID: pjw96aoyh6