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

@pagesmith-ai/mcp

v0.6.0

Published

MCP server for managing Pagesmith sites from AI coding tools

Readme

Pagesmith MCP Server

Model Context Protocol (MCP) server for Pagesmith — lets AI coding agents (Claude Code, Cursor, Claude Desktop, etc.) pull, edit, and deploy your Pagesmith sites.

Install

Run directly with npx (no install needed) or install globally:

# one-off
npx @pagesmith-ai/mcp

# or global
npm install -g @pagesmith-ai/mcp

Requires Node.js 20 or newer.

Configure

Get an API key at https://app.pagesmith.ai/settings/api-keys and export it:

export PAGESMITH_API_KEY=ps_live_...

Claude Code

claude mcp add pagesmith -- npx -y @pagesmith-ai/mcp
# then set the env var in your shell profile

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "pagesmith": {
      "command": "npx",
      "args": ["-y", "@pagesmith-ai/mcp"],
      "env": {
        "PAGESMITH_API_KEY": "ps_live_..."
      }
    }
  }
}

Cursor / other MCP-compatible clients

Point the client at npx -y @pagesmith-ai/mcp with PAGESMITH_API_KEY in the environment.

Environment variables

| Variable | Description | |---|---| | PAGESMITH_API_KEY | Required. API key from your account. | | PAGESMITH_API_URL | Optional. API base URL. Defaults to https://app.pagesmith.ai/api/external. |

Tools

| Tool | Purpose | |---|---| | pagesmith_list_projects | List your projects with preview, published, and custom domain URLs | | pagesmith_pull | Download project files to ~/.pagesmith/workspaces/<id>/ (or fetch a single file) | | pagesmith_push | Commit and deploy workspace changes; auto-fixes build errors | | pagesmith_deploy | Rebuild preview without file changes | | pagesmith_publish | Publish preview to production | | pagesmith_prompt | Send a natural-language edit request to Pagesmith AI | | pagesmith_history | List commit history | | pagesmith_content_list | List content collections or posts | | pagesmith_content_get | Get a post (frontmatter + body) | | pagesmith_content_create | Create a new post | | pagesmith_content_update | Update a post | | pagesmith_content_delete | Delete a post | | pagesmith_domains | Manage custom domains (list, connect, verify, set-primary, refresh-ssl, remove) | | pagesmith_secrets | List integrations or set environment secrets |

Typical agent workflow

  1. pagesmith_list_projects — find the project UUID.
  2. pagesmith_pull — download files into the workspace.
  3. Read / Edit / Write local files (all paths are constrained to the workspace).
  4. pagesmith_push with a commit message — builds, auto-fixes errors, returns a preview URL.
  5. pagesmith_publish when ready.

Security notes

  • The server only writes under ~/.pagesmith/workspaces/<project-id>/. Paths returned by the API are validated and any attempt to escape the workspace is rejected.
  • Requests include a 30s timeout and retry once on HTTP 429 using the Retry-After header.
  • Tool inputs are validated (UUID format, non-empty strings, enum values) before calling the API.

Links

License

MIT — see LICENSE.