LS

l33tdawg/strapi-mcp

Developer tools

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

25 stars 10 forks 품질 70 트렌드 0MIT

당신의 끈끈한 CMS를 위한 MCP 서버

개요

Strapi CMS용 MCP 서버는 Model Context Protocol을 통해 콘텐츠 유형 및 항목에 대한 액세스를 제공합니다. 이 MCP 서버는 모든 Strapi CMS 인스턴스와 통합됩니다. - 리소스로 Strapi 콘텐츠 유형에 대한 액세스 - 도구는 Strapi의 콘텐츠 유형 생성 및 업데이트 - 콘텐츠 항목 관리 도구 (그림, 읽기, 업데이트, 삭제) - 개발 모드에서 끈끈한 지원 - 명확한 진단 및 문제 해결 지침 - 일반적인 설정 문제를 방지하기 위해 프로젝트 루트의 .env 파일을 사용하여 자격 증명을 저장하는 것이 좋습니다. - STRAPI URL: 스트랩 인스턴스의 URL (기본값: http://localhost:1337)] - STRAPI ADMIN EMAIL: 스트랩 관리자 사용자의 이메일 주소 (전체 기능, 특히 스키마 액세스 권장). - STRAPI ADMIN PASSWORD : 스트랩 관리자 사용자의 암호 (추천). - STRAPI API TOKEN: (선택적인 Fallback) API 토큰. admin credentials가 제공되지 않는 경우에 사용될 수 있습니다, 그러나 제한된 허가가 있을지도 모릅니다.

개요(AI 번역)

Strapi CMS용 MCP 서버는 Model Context Protocol을 통해 콘텐츠 유형 및 항목에 대한 액세스를 제공합니다.

개요

이 MCP 서버는 제공 할 모든 Strapi CMS 인스턴스와 통합합니다.

  • Stringi 콘텐츠 유형에 대한 접근
  • Tool to create and update content types in 스트랩리
  • 컨텐츠 항목 관리 (create, read, update, delete)
  • 개발 모드에서 Strapi 지원
  • ** 튼튼한 오류 처리 ** 명확한 진단 및 문제 해결 지침
  • 일반 설정 문제 방지

설치

환경 변수

.env] 을 사용하는 것이 좋습니다.

  • STRAPI_URL: 스트랩 인스턴스의 URL (기본값: http://localhost:1337)
  • STRAPI_ADMIN_EMAIL: 스트랩 관리자 사용자의 이메일 주소 (전체 기능, 특히 스키마 액세스 권장).
  • STRAPI_ADMIN_PASSWORD: Strapi admin 사용자의 비밀번호 (추천).
  • STRAPI_API_TOKEN: (선택적인 Fallback) API 토큰. admin credentials가 제공되지 않는 경우에 사용될 수 있습니다, 그러나 제한된 허가가 있을지도 모릅니다.

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

README

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

Strapi MCP

An MCP server for Strapi CMS, providing access to content types and entries through the Model Context Protocol.

Overview

This MCP server integrates with any Strapi CMS instance to provide:

  • Access to Strapi content types as resources
  • Tools to create and update content types in Strapi
  • Tools to manage content entries (create, read, update, delete)
  • Support for Strapi in development mode
  • Robust error handling with clear diagnostics and troubleshooting guidance
  • Configuration validation to prevent common setup issues

Setup

Environment Variables

It’s recommended to use a .env file in the project root to store your credentials.

  • STRAPI_URL: The URL of your Strapi instance (default: http://localhost:1337)
  • STRAPI_ADMIN_EMAIL: The email address for a Strapi admin user (Recommended for full functionality, especially schema access).
  • STRAPI_ADMIN_PASSWORD: The password for the Strapi admin user (Recommended).
  • STRAPI_API_TOKEN: (Optional Fallback) An API token. Can be used if admin credentials are not provided, but may have limited permissions.
  • STRAPI_DEV_MODE: Set to "true" to enable development mode features (defaults to false).

Example .env file:

STRAPI_URL=http://localhost:1337
[email protected]
STRAPI_ADMIN_PASSWORD=your_admin_password
# STRAPI_API_TOKEN=your_api_token_here # Optional

Important:

  • Add .env to your .gitignore file to avoid committing credentials
  • Avoid placeholder values like "strapi_token" - the server validates and rejects common placeholders

Installation

npm install strapi-mcp

Install from source (Development)

For the latest development features:

git clone https://github.com/l33tdawg/strapi-mcp.git
cd strapi-mcp
npm install
npm run build

Running

Recommended Method (using Cursor MCP Configuration):

For Cursor users, configure the strapi-mcp server in your ~/.cursor/mcp.json file:

"strapi-mcp": {
  "command": "npx",
  "args": ["strapi-mcp"], 
  "env": {
    "STRAPI_URL": "http://localhost:1337",
    "STRAPI_ADMIN_EMAIL": "[email protected]",
    "STRAPI_ADMIN_PASSWORD": "your_admin_password"
  }
}

If you installed from source, use the direct path instead:

"strapi-mcp": {
  "command": "node",
  "args": ["/path/to/strapi-mcp/build/index.js"], 
  "env": {
    "STRAPI_URL": "http://localhost:1337",
    "STRAPI_ADMIN_EMAIL": "[email protected]",
    "STRAPI_ADMIN_PASSWORD": "your_admin_password"
  }
}

Cursor will manage the server lifecycle automatically when strapi-mcp tools are used.

Alternative Method (using .env file):

Make sure you have built the project (npm run build). Then run the server using Node.js v20.6.0+ with the --env-file flag:

node --env-file=.env build/index.js
GitHub에서 전체 README 보기

설치

npx strapi-mcp
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "strapi-mcp": { "command": "npx", "args": ["strapi-mcp"], "env": { "STRAPI_URL": "http://localhost:1337", "STRAPI_ADMIN_EMAIL": "[email protected]", "STRAPI_ADMIN_PASSWORD": "your_admin_password" } } } }