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

@opichi/server-railway

v1.0.2

Published

MCP server for Railway CLI integration

Readme

Railway MCP Server

A Model Context Protocol (MCP) server that provides a standardized interface for Large Language Models (LLMs) to interact with the Railway Command Line Interface (CLI).

Features

  • Complete Railway CLI Integration: Supports all Railway CLI commands as MCP tools
  • Authentication Management: Handles Railway login/logout and user authentication
  • State Management: Maintains project and environment context
  • Error Handling: Provides structured error messages and clear feedback
  • Easy Installation: Available as an NPM package, runnable via npx

Installation

Prerequisites

  • Node.js 18.0.0 or higher
  • Railway CLI installed and available in your system's PATH

Install Railway CLI

# Install Railway CLI if not already installed
npm install -g @railway/cli

Install MCP Server

# Run directly with npx (recommended)
npx @opichi/server-railway

# Or install globally
npm install -g @opichi/server-railway

Configuration

VS Code with MCP Extension

Add the following to your VS Code settings.json:

{
  "mcpServers": {
    "railway": {
      "command": "npx",
      "args": [
        "-y",
        "@opichi/server-railway"
      ],
      "disabled": false
    }
  }
}

Cursor IDE

Add to your Cursor configuration:

{
  "mcpServers": {
    "railway": {
      "command": "npx",
      "args": [
        "-y",
        "@opichi/server-railway"
      ]
    }
  }
}

Supported Commands

Core Management

  • railway_login - Authenticate with Railway
  • railway_logout - Log out of Railway account
  • railway_whoami - Display current user info
  • railway_list - List all Railway projects
  • railway_link - Connect directory to Railway project
  • railway_unlink - Disconnect from Railway project
  • railway_init - Create new Railway project
  • railway_delete - Delete a project
  • railway_docs - Open Railway documentation
  • railway_version - Get Railway CLI version
  • railway_help - Get help for specific commands

Deployment & Services

  • railway_up - Deploy code to Railway
  • railway_down - Remove recent deployment
  • railway_logs - Show deployment logs
  • railway_add - Add plugin to project
  • railway_connect - Connect to database shell
  • railway_domain - Manage custom domains
  • railway_deploy - Deploy template to project

Environment & Variables

  • railway_environment - Manage environments
  • railway_variables - Work with environment variables

Local Development

  • railway_run - Run command with Railway variables
  • railway_shell - Open shell with Railway variables
  • railway_status - View project status
  • railway_open - Open project in Railway dashboard
  • railway_completion - Generate shell completion scripts

Usage Example

Once configured in your MCP-compatible client, you can use natural language to interact with Railway:

"Login to Railway and show me my projects"
"Create a new Railway project called 'my-app'"
"Deploy the current directory to Railway"
"Show me the logs for my latest deployment"
"Set the environment variable DATABASE_URL to my production database"

Error Handling

The server provides clear error messages when:

  • Railway CLI is not installed or not found in PATH
  • Authentication is required but user is not logged in
  • Commands fail due to invalid arguments or Railway API issues
  • Network connectivity problems

Development

Setup

git clone <repository-url>
cd railway-mcp-server
npm install

Build

npm run build

Development Mode

npm run dev

Testing

npm test

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests if applicable
  5. Submit a pull request

License

MIT License - see LICENSE file for details

Support

For issues and questions: