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

@modyo/mcp

v0.2.0

Published

Unified Modyo MCP Server - Model Context Protocol server for Modyo platform

Readme

Modyo MCP Server

A Model Context Protocol (MCP) server for managing Modyo platform instances. Connect your AI assistants directly to Modyo's APIs for content management, site building, and platform administration.

Table of Contents


Features

  • Simple Setup — Configure with two environment variables
  • Comprehensive Tools — API coverage across 4 modules
  • TypeScript — Fully typed with Zod schema validation
  • Stdio Transport — Works with Claude Code, VS Code, Cursor, and other MCP clients

Requirements

  • Node.js 22+
  • A Modyo platform instance
  • A Modyo admin API token

Installation

Claude Desktop

Add to your claude_desktop_config.json:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "modyo": {
      "command": "npx",
      "args": ["-y", "@modyo/mcp"],
      "env": {
        "MODYO_URL": "https://your-org.modyo.com",
        "MODYO_TOKEN": "your-admin-token"
      }
    }
  }
}

Restart Claude Desktop after saving.


Claude Code

claude mcp add modyo \
  --scope project \
  --env MODYO_URL=https://your-org.modyo.com \
  --env MODYO_TOKEN=your-token \
  -- npx -y @modyo/mcp

Use --scope user instead of --scope project to apply the configuration globally across all projects.

Verify the server was registered:

claude mcp list

GitHub Copilot in VS Code

Requires Copilot with Agent Mode enabled.

Per project (recommended — commit with your repo):

Create .vscode/mcp.json in your project root:

{
  "servers": {
    "modyo": {
      "command": "npx",
      "args": ["-y", "@modyo/mcp"],
      "env": {
        "MODYO_URL": "https://your-org.modyo.com",
        "MODYO_TOKEN": "your-token"
      }
    }
  }
}

A Start button will appear at the top of the file. Click it to start the server and let Copilot discover the available tools.

Global (applies to all projects):

Open Command Palette → Chat: Open User MCP Configuration and add the same configuration.

Note for organizations: If your account is Copilot Business or Enterprise, an administrator must enable the "MCP servers in Copilot" policy in your organization settings.


GitHub Copilot CLI

Option A — Interactive (recommended):

Inside a Copilot CLI session, run:

/mcp add

Follow the wizard: select Local or STDIO, enter npx -y @modyo/mcp as the command, and add the environment variables.

Option B — Edit config file directly:

Edit ~/.copilot/mcp-config.json:

{
  "mcpServers": {
    "modyo": {
      "type": "local",
      "command": "npx",
      "args": ["-y", "@modyo/mcp"],
      "env": {
        "MODYO_URL": "https://your-org.modyo.com",
        "MODYO_TOKEN": "your-token"
      },
      "tools": ["*"]
    }
  }
}

Verify the server is registered:

/mcp show

Note: Copilot CLI's auto-compaction can corrupt the message history during large tool call responses, producing a CAPIError: 400 error. See Troubleshooting for workarounds.


Gemini CLI

Edit ~/.gemini/settings.json for a global setup, or .gemini/settings.json in your project for a per-project setup:

{
  "mcpServers": {
    "modyo": {
      "command": "npx",
      "args": ["-y", "@modyo/mcp"],
      "env": {
        "MODYO_URL": "https://your-org.modyo.com",
        "MODYO_TOKEN": "your-token"
      }
    }
  }
}

Important: Gemini CLI automatically redacts environment variables matching sensitive patterns like *TOKEN*. Always declare MODYO_TOKEN explicitly in the env block as shown above — do not rely on shell environment variables.

Verify inside Gemini CLI:

/mcp

Cursor

Edit ~/.cursor/mcp.json:

{
  "mcpServers": {
    "modyo": {
      "command": "npx",
      "args": ["-y", "@modyo/mcp"],
      "env": {
        "MODYO_URL": "https://your-org.modyo.com",
        "MODYO_TOKEN": "your-token"
      }
    }
  }
}

Other MCP clients

Any client that supports the MCP stdio transport:

command: npx
args: ["-y", "@modyo/mcp"]
env:
  MODYO_URL: https://your-org.modyo.com
  MODYO_TOKEN: your-token

Environment Variables

| Variable | Required | Description | |----------|----------|-------------| | MODYO_URL | Yes | Platform URL (e.g., https://company.modyo.cloud) | | MODYO_TOKEN | Yes | API token — Modyo Admin → Settings → API Access | | MODYO_PLATFORM_NAME | No | Display name for the platform (default: "default") | | DEBUG | No | Enable debug logging |

Without MODYO_URL and MODYO_TOKEN, the server starts in public mode and only exposes tools that don't require authentication. Useful for exploring available capabilities.


Available Modules

| Module | Description | |--------|-------------| | Content | Spaces, types, entries, assets, categories | | Channels | Sites, pages, widgets, templates, navigation | | Customers | Realms, users, forms, submissions | | Core | Admin users, groups, roles |


Usage Examples

"List all spaces in my platform"
"Create a content type called 'Products' with name and price fields"
"Show all widgets for site ID 5"
"Publish all pending changes for site 123"
"Create a new page at /about with the Base layout"

Development

git clone https://github.com/modyo/modyo-mcp-server
cd modyo-mcp-server
npm install
npm run build
npm test
npm run lint:fix

See CLAUDE.MD for development guidelines and architecture details.


Troubleshooting

"Platform not configured" error:

# Verify environment variables are set
echo $MODYO_URL
echo $MODYO_TOKEN

# Test the API token directly
curl -H "Authorization: Bearer $MODYO_TOKEN" "$MODYO_URL/api/admin/account"

Build errors:

npm run clean && npm run build

Gemini CLI — authentication fails silently:

Gemini CLI filters environment variables matching *TOKEN* before passing them to MCP servers. Make sure MODYO_TOKEN is declared explicitly in the env block of your settings.json, not just exported in your shell.

GitHub Copilot CLI — CAPIError: 400 after tool calls:

Copilot CLI's auto-compaction can drop the tool_calls message while retaining the tool response, corrupting the conversation history. This is a known CLI bug, not a server issue.

Workarounds:

  • Start a fresh session: rm -rf ~/.copilot/session-state && copilot --allow-all-tools
  • Keep tool call responses small — ask for specific fields instead of full objects (e.g. "list sites, return only id, name and host")

Resources


License

Modyo Agreement © Modyo