
l33tdawg/strapi-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
お使いのStrapti CMS用のMCPサーバー
概要
CMS用のMCPサーバーで、モデルコンテキストプロトコルを介してコンテンツタイプとエントリへのアクセスを提供します。 この MCP サーバーは、任意の ストラップ CMS インスタンスと統合します。: - リソースとして ストラップ コンテンツ タイプへのアクセス - ツール 作成し、コンテンツの種類を更新する - コンテンツエントリの管理ツール (作成、読み込み、更新、削除) - 開発モードの ストラップのサポート - 明確な診断とトラブルシューティングガイダンス - 一般的なセットアップの問題を防ぐ 資格情報を保存するために、プロジェクトルートで.envファイルを使用することをお勧めします。 - STRAPI URL: ストラップインスタンスのURL (デフォルト: http://localhost:1337)]) - STRAPI ADMIN EMAIL: ストラップ管理者ユーザのメールアドレス(フル機能、特にスキーマアクセスのために推奨)。 - STRAPI ADMIN PASSWORD: ストラップ管理者ユーザー(推奨)のパスワード。 - STRAPI API TOKEN: (オプションフォールバック) APIトークン。 管理者の資格情報が提供されていない場合、使用できませんが、限られた許可がある場合.
概要(AI 翻訳)
CMS用のMCPサーバーで、モデルコンテキストプロトコルを介してコンテンツタイプとエントリへのアクセスを提供します。
概要
この MCP サーバーは、任意の ストラップ CMS インスタンスと統合し、以下を提供します。
- リソースとしてストラップのコンテンツタイプへのアクセス
- コンテンツタイプを作成および更新するためのツール
- コンテンツエントリを管理するツール(作成、読み込み、更新、削除)
- 開発モードのストラップのサポート
- 明確な診断およびトラブルシューティングの指導のRobustの間違いの処理 -一般的なセットアップの問題を防ぐための設定検証
セットアップ
環境変数
資格情報を保存するためにプロジェクトルートの[.envファイルを使用することをお勧めします。
- [
STRAPI_URL: ストラップインスタンスのURL (デフォルト:http://localhost:1337)) - [
STRAPI_API_TOKEN: (オプションフォールバック) APIトークン。 管理者の資格情報が提供されていない場合、使用できませんが、限られた許可がある場合.
このページは 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 tofalse).
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
.envto your.gitignorefile to avoid committing credentials - Avoid placeholder values like
"strapi_token"- the server validates and rejects common placeholders
Installation
Install from npm (Recommended)
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
インストール
npx strapi-mcp設定
{
"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"
}
}
}
}