
microCMS MCP Server
A Model Context Protocol server that enables AI assistants like Claude to interact with microCMS content management system through six core tools for performing CRUD operations on microCMS list-type APIs.
README
microCMS MCP Server
A Model Context Protocol (MCP) server for microCMS API integration. This server enables AI assistants like Claude to interact with microCMS content management system.
Features
- Content Management: Full CRUD operations for microCMS list-type APIs
- Eight Core Tools:
microcms_get_list
- Retrieve content lists with filtering and paginationmicrocms_get_content
- Get individual content itemsmicrocms_create_content
- Create new contentmicrocms_update_content
- Update content (PUT)microcms_patch_content
- Partially update content (PATCH)microcms_delete_content
- Delete contentmicrocms_get_media
- Retrieve media files (Management API)microcms_upload_media
- Upload media files (Management API)
- Full API Support: Supports all microCMS query parameters including drafts, filters, pagination, and depth expansion
Requirements
- Node.js 18.0.0 or higher
- microCMS account and API key
Installation
Method 1: Using npx (Recommended)
No installation required! Use directly with npx:
npx microcms-mcp-server --service-id your-service-id --api-key your-api-key
Method 2: Global Installation
npm install -g microcms-mcp-server
microcms-mcp-server --service-id your-service-id --api-key your-api-key
Method 3: Development Setup
-
Clone this repository
-
Install dependencies:
npm install
-
Build the project:
npm run build
Configuration
You can configure microCMS credentials in two ways:
Method 1: Environment Variables
-
Copy the environment template:
cp .env.example .env
-
Configure your microCMS credentials in
.env
:MICROCMS_SERVICE_ID=your-service-id MICROCMS_API_KEY=your-api-key
Method 2: Command Line Arguments
Pass credentials directly as command line arguments:
node dist/index.js --service-id your-service-id --api-key your-api-key
Note: Command line arguments take precedence over environment variables.
Usage
Running the Server
Using environment variables:
npm start
Using command line arguments:
npm run start:args
# or directly:
node dist/index.js --service-id your-service-id --api-key your-api-key
Using with Claude Desktop
Add the following to your Claude Desktop MCP configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%/Claude/claude_desktop_config.json
Option 1: Using npx (Recommended)
{
"mcpServers": {
"microcms": {
"command": "npx",
"args": [
"-y",
"microcms-mcp-server",
"--service-id", "your-service-id",
"--api-key", "your-api-key"
]
}
}
}
Option 2: Using global installation
{
"mcpServers": {
"microcms": {
"command": "microcms-mcp-server",
"args": [
"--service-id", "your-service-id",
"--api-key", "your-api-key"
]
}
}
}
Option 3: Using local development setup
{
"mcpServers": {
"microcms": {
"command": "node",
"args": [
"/path/to/microcms-mcp-server/dist/index.js",
"--service-id", "your-service-id",
"--api-key", "your-api-key"
]
}
}
}
Replace:
your-service-id
with your microCMS service IDyour-api-key
with your microCMS API key/path/to/microcms-mcp-server/
with the actual path (Option 3 only)
Restart Claude Desktop after updating the configuration.
Development Mode
npm run dev
Available Scripts
npm run build
- Build TypeScript to JavaScriptnpm start
- Run the compiled servernpm run dev
- Development mode with auto-reloadnpm run lint
- Run ESLintnpm run format
- Format code with Prettier
Tool Examples
Get Content List
{
"name": "microcms_get_list",
"arguments": {
"endpoint": "blogs",
"limit": 10,
"orders": "-publishedAt"
}
}
Get Individual Content
{
"name": "microcms_get_content",
"arguments": {
"endpoint": "blogs",
"contentId": "article-1"
}
}
Create New Content
{
"name": "microcms_create_content",
"arguments": {
"endpoint": "blogs",
"content": {
"title": "My Blog Post",
"body": "Content here...",
"category": "tech",
"thumbnail": "https://example.com/image.jpg"
}
}
}
Update Content with Image
{
"name": "microcms_update_content",
"arguments": {
"endpoint": "blogs",
"contentId": "article-1",
"content": {
"title": "Updated Title",
"image": "https://example.com/new-image.jpg"
}
}
}
Get Media Files
{
"name": "microcms_get_media",
"arguments": {
"limit": 20,
"imageOnly": true,
"fileName": "sample"
}
}
Upload Media File (Base64)
{
"name": "microcms_upload_media",
"arguments": {
"fileData": "base64-encoded-file-data",
"fileName": "image.jpg",
"mimeType": "image/jpeg"
}
}
Upload Media File (External URL)
{
"name": "microcms_upload_media",
"arguments": {
"externalUrl": "https://example.com/image.jpg"
}
}
Field Type Specifications
When creating or updating content, different field types require specific formats:
Text Fields
"title": "Article Title"
Rich Editor Fields
"body": "<h1>見出し</h1><p>このようにHTMLで入稿できます</p>"
Image Fields
Must use URLs from the same microCMS service:
"thumbnail": "https://images.microcms-assets.io/assets/xxxxxxxx/yyyyyyyy/sample.png"
Multiple Image Fields
"gallery": [
"https://images.microcms-assets.io/assets/xxxxxxxx/yyyyyyyy/sample1.png",
"https://images.microcms-assets.io/assets/xxxxxxxx/yyyyyyyy/sample2.png"
]
Date Fields
Use ISO 8601 format:
"publishedAt": "2020-04-23T14:32:38.163Z"
Select Fields
"categories": ["カテゴリ1", "カテゴリ2"]
Content Reference Fields
Single reference:
"relatedArticle": "article-id-123"
Multiple references:
"relatedArticles": ["article-id-123", "article-id-456"]
Complete Example
{
"name": "microcms_create_content",
"arguments": {
"endpoint": "blogs",
"content": {
"title": "My Blog Post",
"body": "<h2>Introduction</h2><p>This is a paragraph with <strong>bold text</strong>.</p>",
"thumbnail": "https://images.microcms-assets.io/assets/xxx/yyy/image.png",
"publishedAt": "2024-01-15T10:30:00.000Z",
"categories": ["tech", "tutorial"],
"relatedArticles": ["article-1", "article-2"]
}
}
}
Media Management
Media Retrieval (microcms_get_media
)
- API Type: Management API v2 (direct fetch)
- Permissions: Requires "media retrieval" permissions
- Features:
- Pagination with tokens (15-second validity)
- Filter by filename
- Image-only filtering
- Returns URLs, dimensions, and metadata
Media Upload (microcms_upload_media
)
- API Type: Management API v1 (via JS SDK)
- Permissions: Requires "media upload" permissions
- Upload Methods:
- File Data Upload: Base64 encoded file data with filename and mimeType
- External URL Upload: Direct upload from external URL
- Limitations:
- File size: 5MB maximum
- One file per request
- Available on Team, Business, Advanced, Enterprise plans
- Returns: microCMS asset URLs
- Images:
https://images.microcms-assets.io/...
- Files:
https://files.microcms-assets.io/...
- Images:
API Reference
All tools support the full range of microCMS API parameters. Content tools use the Content API, while media tools use the Management API.
Error Handling
The server provides detailed error messages for:
- Missing required environment variables
- Invalid API requests
- microCMS API errors
- Malformed tool parameters
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.