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

laravel-forge-mcp

v1.0.0

Published

MCP server for Laravel Forge deployments and site/server information

Readme

laravel-forge-mcp

An MCP server that helps agents manage Laravel Forge servers, sites, and deployments through the Laravel Forge API.

This server lets MCP clients (for example Claude, Cline, Cursor, or Codex) easily:

  • list Forge managed servers,
  • inspect sites on a server,
  • search sites before choosing a deployment target,
  • trigger a Forge deployment for a site,
  • reset a stuck deployment status,
  • read deployment history, deployment output, current deployment log, and deployment script.

Features

  • Communicates with the Laravel Forge API using a token passed by --api-key.
  • Tools:
    • forge_list_servers
    • forge_get_server
    • forge_list_sites
    • forge_get_site
    • forge_find_sites
    • forge_deploy_site
    • forge_reset_deployment_status
    • forge_list_deployments
    • forge_get_deployment
    • forge_get_deployment_log
    • forge_get_deployment_output
    • forge_get_deployment_script
  • Local pagination for list/search tools.
  • Markdown and JSON response formats for structured data tools.
  • Actionable Forge API error messages for authentication, missing resources, rate limits, and server errors.
  • Covered by tests (vitest).

Requirements

  • Node.js 18+
  • npm
  • Laravel Forge API token

Running

The server uses stdio MCP transport, so your MCP client should launch it with:

npx -y laravel-forge-mcp@latest --api-key your-forge-api-token

Claude Code example

{
  "mcpServers": {
    "laravel-forge": {
      "command": "npx",
      "args": ["-y", "laravel-forge-mcp@latest", "--api-key", "your-forge-api-token"]
    }
  }
}

Cursor example

{
  "mcpServers": {
    "laravel-forge": {
      "command": "npx",
      "args": ["-y", "laravel-forge-mcp@latest", "--api-key", "your-forge-api-token"]
    }
  }
}

Codex-style TOML example:

[mcp_servers.laravel-forge]
command = "npx"
args = ["-y", "laravel-forge-mcp@latest", "--api-key", "your-forge-api-token"]
startup_timeout_sec = 20.0

Development

Run tests:

npm test

Run tests with coverage:

npm run test:coverage

Watch mode:

npm run test:watch

Run locally from this repository:

npm start -- --api-key your-forge-api-token

Project Structure

  • index.js: CLI bootstrap entrypoint.
  • src/cli.js: command argument parsing.
  • src/forge.js: Laravel Forge API client and error handling.
  • src/server.js: MCP server creation and tool registration.
  • tests/cli.unit.test.mjs: CLI parser tests.
  • tests/forge.unit.test.mjs: Forge API client tests.
  • tests/server.integration.test.mjs: MCP server integration tests.

License

  • Project: MIT