SW

stefans71/wordpress-mcp-server

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

81 stars 21 forks 품질 64 트렌드 14MIT

stefans71/wordpress-mcp-server는 MCP 서버 후보가 https://github.com/stefans71/wordpress-mcp-server.에서 수입되었습니다

개요

stefans71/wordpress-mcp-server는 MCP 서버 후보가 https://github.com/stefans71/wordpress-mcp-server.에서 수입되었습니다

개요(AI 번역)

Windows, macOS 및 Linux와 호환되는 WordPress 통합을위한 모델 콘텍스 프로토콜 (MCP) 서버.

개요

이 MCP 서버는 WordPress REST API를 통해 WordPress 사이트와 상호 작용할 수 있습니다. JSON-RPC 2.0 프로토콜을 사용하여 생성, 검색 및 업데이트된 포스트를 위한 도구를 제공합니다.

설치

  1. 저장소를 복제

  2. 의존성 설치:

  3. 프로젝트 구축:

구성

WordPress 자격 증명에 대한 환경 변수와 MCP 설정 파일에 서버를 추가하십시오.

환경 변수는:

  • WORDPRESS SITE URL: 워드프레스 사이트 URL
  • WORDPRESS USERNAME: 워드 프레스 사용자 이름
  • WORDPRESS PASSWORD: 워드프레스 앱 암호

환경 변수를 사용하지 않는 경우 요청 매개 변수에 이러한 자격 증명을 제공 할 수 있습니다.

사용 가능한 방법

생성하기 post

새로운 WordPress 게시물 만들기.

모수:

  • siteUrl: (env에서 설정하면 선택 사항) WordPress 사이트 URL
  • 사용자 이름: (env에서 설정한 경우) WordPress 사용자 이름
  • 비밀번호: (env에서 설정한 경우 선택) WordPress 애플리케이션 암호
  • 제목 : 게시물 제목
  • 내용 : 게시물 내용
  • 상태 : (선택 사항) ‘draft’ | ‘publish’ | ‘private’ (기본값: ‘draft’)

# get posts에

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

WordPress MCP Server

A Model Context Protocol (MCP) server for WordPress integration, compatible with Windows, macOS, and Linux.

Overview

This MCP server enables interaction with WordPress sites through the WordPress REST API. It provides tools for creating, retrieving, and updating posts using JSON-RPC 2.0 protocol.

Installation

  1. Clone the repository
  2. Install dependencies:
npm install
  1. Build the project:
npm run build

Configuration

Add the server to your MCP settings file with environment variables for WordPress credentials:

{
  "mcpServers": {
    "wordpress": {
      "command": "node",
      "args": ["path/to/build/index.js"],
      "env": {
        "WORDPRESS_SITE_URL": "https://your-wordpress-site.com",
        "WORDPRESS_USERNAME": "your-username",
        "WORDPRESS_PASSWORD": "your-app-password"
      }
    }
  }
}

The environment variables are:

  • WORDPRESS_SITE_URL: Your WordPress site URL
  • WORDPRESS_USERNAME: WordPress username
  • WORDPRESS_PASSWORD: WordPress application password

You can also provide these credentials in the request parameters if you prefer not to use environment variables.

Available Methods

create_post

Creates a new WordPress post.

Parameters:

  • siteUrl: (optional if set in env) WordPress site URL
  • username: (optional if set in env) WordPress username
  • password: (optional if set in env) WordPress application password
  • title: Post title
  • content: Post content
  • status: (optional) ‘draft’ | ‘publish’ | ‘private’ (default: ‘draft’)

get_posts

Retrieves WordPress posts.

Parameters:

  • siteUrl: (optional if set in env) WordPress site URL
  • username: (optional if set in env) WordPress username
  • password: (optional if set in env) WordPress application password
  • perPage: (optional) Number of posts per page (default: 10)
  • page: (optional) Page number (default: 1)

update_post

Updates an existing WordPress post.

Parameters:

  • siteUrl: (optional if set in env) WordPress site URL
  • username: (optional if set in env) WordPress username
  • password: (optional if set in env) WordPress application password
  • postId: ID of the post to update
  • title: (optional) New post title
  • content: (optional) New post content
  • status: (optional) ‘draft’ | ‘publish’ | ‘private’

Security Note

For security, it’s recommended to use WordPress application passwords instead of your main account password. You can generate an application password in your WordPress dashboard under Users → Security → Application Passwords.

Example Usage

Using environment variables:

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "create_post",
  "params": {
    "title": "My New Post",
    "content": "Hello World!",
    "status": "draft"
  }
}

Without environment variables:

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "create_post",
  "params": {
    "siteUrl": "https://your-wordpress-site.com",
    "username": "your-username",
GitHub에서 전체 README 보기

설치

This server does not publish a one-line install command.

Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "wordpress": { "command": "node", "args": ["path/to/build/index.js"], "env": { "WORDPRESS_SITE_URL": "https://your-wordpress-site.com", "WORDPRESS_USERNAME": "your-username", "WORDPRESS_PASSWORD": "your-app-password" } } } }