npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

strapi-content-mcp

v0.1.6

Published

A Strapi v5 plugin that exposes your content via the Model Context Protocol (MCP), enabling AI assistants like Claude to interact directly with your Strapi content.

Readme

Strapi Content MCP

npm version License: MIT

A Strapi v5 plugin that exposes your content via the Model Context Protocol (MCP), enabling AI assistants like Claude to interact directly with your Strapi content.

Features

  • Direct Strapi Integration - Uses Strapi's internal Document Service API with full sanitization
  • HTTP/SSE Transport - Standard HTTP endpoint for MCP communication
  • 8 MCP Tools - Full CRUD operations plus media upload
  • Security First - Input/output sanitization, route-level auth via Strapi policies
  • Strapi v5 Compatible - Built for the latest Strapi version

Installation

# Using npm
npm install strapi-content-mcp

# Using yarn
yarn add strapi-content-mcp

Configuration

Add to your Strapi config/plugins.ts (or config/plugins.js):

export default {
  'strapi-content-mcp': {
    enabled: true,
    config: {
      // Optional: Set log level (default: 'info')
      logLevel: 'info', // 'error' | 'warn' | 'info' | 'debug' | 'trace'
    },
  },
};

Then rebuild and start Strapi:

yarn build
yarn develop

Connecting Claude Desktop

Edit your Claude Desktop configuration file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "strapi-content": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "http://localhost:1337/api/strapi-content-mcp/mcp"
      ]
    }
  }
}

Restart Claude Desktop and start chatting with your Strapi content!

Available Tools

| Tool | Description | |------|-------------| | list_content_types | List all content types with their schemas | | list_components | List components with pagination | | find_many | Query documents with filters, sort, pagination | | find_one | Get single document by documentId | | create | Create new document | | update | Update existing document | | delete | Delete document | | upload_media | Upload media from URL |

Example Usage

Once connected, ask Claude:

  • "List all content types in Strapi"
  • "Find all published articles"
  • "Create a new blog post titled 'Hello World'"
  • "Update article abc123 to change the title"
  • "Upload this image to Strapi"

Tool Examples

Finding Documents

find_many with uid: "api::article.article"
- filters: { publishedAt: { $notNull: true } }
- sort: "createdAt:desc"
- pagination: { page: 1, pageSize: 10 }
- populate: ["author", "category"]

Creating Documents

create with uid: "api::article.article"
- data: { title: "My Article", content: "Hello world" }
- status: "published"

Security

This plugin includes several security measures:

  • Output Sanitization: All data returned is sanitized to remove private fields
  • Input Sanitization: All incoming data is sanitized before database writes
  • Fail-Closed: If sanitization fails, operations are rejected (no unsanitized data exposed)

For production use, consider adding authentication:

// config/plugins.ts
export default {
  'strapi-content-mcp': {
    enabled: true,
    config: {
      // Add route middleware for authentication
    },
  },
};

Requirements

  • Strapi v5.x
  • Node.js 18+ (including Node.js 22, 24+)

API Endpoint

The MCP endpoint is available at:

POST/GET/DELETE http://localhost:1337/api/strapi-content-mcp/mcp

Troubleshooting

Memory Issues

If you encounter heap memory errors during Strapi build:

NODE_OPTIONS='--max-old-space-size=8192' yarn build
NODE_OPTIONS='--max-old-space-size=8192' yarn develop

Connection Issues

  1. Ensure Strapi is running on the expected port
  2. Check Claude Desktop config file syntax (valid JSON)
  3. Restart Claude Desktop after config changes
  4. Check Strapi logs for MCP-related errors

Contributing

Contributions welcome! Please:

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Submit a pull request

License

MIT - see LICENSE for details.

Author

Paul Bratslavsky (@PaulBratslavsky)