Prototype · Preview: every server in the official registry, synced every 30 minutes. Reviews and accounts come in a later step.
PopNx MCPMCP servers for people who use AI · explained in plain words

Murphys Laws

by ravidorrversion 1.2.5i★ –iRuns on your computer
Registry namecom.murphys-laws/murphys-laws

Install

Overview

Description from the maker (original English)

Access thousands of Murphy's Laws: search, browse by category, random, daily, submit.

PopNx MCP’s three pillars

These three are never merged into one score: opinions, measurements and popularity are different things.

What you can do with it

We have not written a plain-language summary for this one yet. Below are the facts we read from the registry.

  • Connection: Runs on your computer
  • Transport: stdio
  • Category: Search & AI memory

Install

Pick the AI app you use, then copy the settings.

Before you install

  • Basic checks: 1 of 1 passed
  • Runs on your computer with your user’s permissions (files, network, apps).
  • The registry lists no key to fill in.

You need

  • npmNode.js installed (for the npx command)

Which app do you use?

Pick your app above. We remember it, so next time the button says “Install in …”.

Open Claude Desktop → Settings → Developer → Edit Config, and paste this into claude_desktop_config.json

{
  "mcpServers": {
    "murphys-laws": {
      "command": "npx",
      "args": [
        "-y",
        "murphys-laws-mcp"
      ]
    }
  }
}

Run this in your terminal

claude mcp add murphys-laws -- npx -y murphys-laws-mcp

Open in Cursor

Or copy the settings yourself

Paste into .cursor/mcp.json in your project, or ~/.cursor/mcp.json

{
  "mcpServers": {
    "murphys-laws": {
      "command": "npx",
      "args": [
        "-y",
        "murphys-laws-mcp"
      ]
    }
  }
}

Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.

Open in VS Code

Or copy the settings yourself

Paste into .vscode/mcp.json in your project

{
  "servers": {
    "murphys-laws": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "murphys-laws-mcp"
      ]
    }
  }
}

Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.

This one runs on your computer, and ChatGPT can only connect to servers on the internet. Pick another app.

Your choice stays on this device in a cookie; no account needed.

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

What it can do

Runs on your computer; the tool list appears in your AI app after you install it.

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 6, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified against the domain murphys-laws.com (the registry checks domain ownership)

  • … Not checked yet

    Still maintained

    We have not read this repo from GitHub yet

  • … Not checked yet

    Has a licence

    We have not read this repo from GitHub yet

  • – Not applicable

    Endpoint responds

    This one runs on your computer; there is no internet endpoint

  • – Not applicable

    Sign-in with OAuth

    Runs on your computer and uses local settings instead

  • … Not checked yet

    No hidden instructions in tool descriptions

    Runs on your computer; we can only read tool lists from internet endpoints

Compared with others in Search & AI memoryi

  • More stars than 0% of the other 7234 servers in this category
  • Published to the registry more recently than 74% of the other 7234 servers in this category
  • Basic checks equal to or better than 100% of the other 7234 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is Murphys Laws safe?

It passed 1 of 1 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

The registry does not list a required key, though some servers ask you to sign in on first use.

Does it run on my computer or in the cloud?

It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).

Is it still maintained?

The GitHub repo last changed –, and the latest version (1.2.5) reached the registry 13 days ago.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Node.js on your computer.

What can I use instead?

In the same category: Context7, Codebase Memory, Exa

Alternatives

Servers in the same category from other makers, sorted by stars.

Reading a card:★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

Context7

by upstash

Feeds AI the latest docs for libraries and frameworks before it answers, so code it writes does not use outdated, removed functions.

Computer or cloud★ 64,224MITUpdated 3 days ago
Install

Codebase Memory

by DeusData

Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.

Runs on your computer★ 48,148MITUpdated 20 days ago
Install

Exa

by exa-labs

Connect AI agents to Exa for web search, content fetching, and multi-step research.

Runs in the cloud★ 5,213MITUpdated 44 days ago
Install

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

Murphy's Laws

A comprehensive collection of Murphy's Laws - humorous observations about life's tendency for things to go wrong.

Available on the Web, with iOS and Android releases forthcoming.

Platforms

AI & Developer Integration

Four official ways to integrate Murphy's Laws. No API key for reads.

PackagenpmPurpose
murphys-laws-sdkTyped TypeScript client, zero deps
murphys-laws-cliCommand-line interface (npx murphys-laws-cli)
murphys-laws-mcpModel Context Protocol server for AI agents
REST API-Public HTTP API at https://murphys-laws.com/api/v1/

Full details and examples on the developer landing page.

REST API

Public API at https://murphys-laws.com/api/v1/, no auth required for reads.

TypeScript SDK

murphys-laws-sdk on npm is a tiny typed client over the REST API with zero runtime dependencies.

import { MurphysLawsClient } from 'murphys-laws-sdk';

const law = await new MurphysLawsClient().getRandomLaw();

Command-line interface

murphys-laws-cli on npm wraps the API for scripts and terminal use.

npx murphys-laws-cli random

npx murphys-laws-cli search "computer" --limit 3

MCP Server (Model Context Protocol)

An MCP server lets AI agents (Claude Desktop, Cursor, VS Code Copilot) query Murphy's Laws directly.

Quick start, no clone needed:

{

"mcpServers": { "murphys-laws": { "command": "npx", "args": ["-y", "murphys-laws-mcp"] } } }

7 tools: search_laws, get_random_law, get_law_of_the_day, get_law, list_categories, get_laws_by_category, submit_law.

See mcp/README.md or npm, or the developer landing page for the full picture.

Repository Structure

This is a monorepo containing:

murphys-laws/

├── backend/ # Node.js API server (TypeScript runtime via tsx) ├── web/ # Web application (TypeScript + Vite) ├── mcp/ # MCP server for AI agent integration (npm: murphys-laws-mcp) ├── sdk/ # TypeScript SDK over the public REST API (npm: murphys-laws-sdk) ├── cli/ # Command-line interface (npm: murphys-laws-cli) ├── ios/ # iOS app (Swift + SwiftUI) ├── android/ # Android app (Kotlin + Jetpack Compose) └── shared/ # Shared resources and documentation

Quick Start

Backend (API Server)
cd backend

npm install npm run build:db # Build SQLite database npm run dev # Start API server npm start # Run API from src/server/api-server.ts via tsx

Web Application
cd web

npm install npm run dev # Start dev server

iOS App
cd ios

open MurphysLaws.xcodeproj

Press ⌘R to run

Android App
cd android

./gradlew assembleDebug

Or open in Android Studio

Documentation

  • Architecture: Mobile Architecture Guide
  • MCP Server: MCP README
  • API: API Documentation
  • iOS: iOS PRD
  • Android: Android PRD
  • Deployment: Deployment Guide
  • Repository Structure: Repository Structure Guide

Testing

# Run all tests (backend, web, SDK, CLI, and MCP)

npm test

Test a subset only

npm run test:backend # Backend Vitest suite npm run test:web # Web Vitest suite only (no E2E) npm run test:web:e2e # Web E2E (Playwright) only

Development

Prerequisites
  • Node.js 22+
  • For iOS: macOS, Xcode 15+
  • For Android: Android Studio Hedgehog+, JDK 17+
Install Dependencies
# Install all dependencies (root and workspaces)

npm run install:all

Or install individually

cd backend && npm install cd web && npm install

Run Development Servers
# Run backend + web concurrently

npm run dev

Or run individually

npm run dev:backend npm run dev:web

Note: The predev script automatically cleans up any orphaned processes using ports 8787 and 5175 before starting.

Troubleshooting Port Issues

If you encounter EADDRINUSE errors (port already in use):

# Check which processes are using development ports

npm run cleanup-ports

Automatically kill processes using development ports

npm run cleanup-ports -- --kill

Or manually check and kill

lsof -i :8787 # Check API port lsof -i :5175 # Check frontend port kill # Kill the process

Building

# Generate OpenAPI and build the web app

npm run build

Build specific platform

npm run build:web npm run build:backend:db

TypeScript Runtime Architecture

  • Backend runs TypeScript source directly with tsx (no JS build step required for startup).
  • Canonical backend runtime entrypoint: backend/src/server/api-server.ts.
  • PM2 runtime uses Node loader: node --import tsx.
  • Shared runtime templates are TypeScript in shared/modules/*.ts.

Deployment

See Deployment Guide for detailed instructions.

# Deploy web app (builds and syncs to production)

npm run deploy

Keyboard Shortcuts (Web)

Press ? anywhere on the site to see all available shortcuts:

ShortcutAction
/Focus search
↑ / ↓Navigate search suggestions (when autocomplete is open)
EnterSelect search suggestion (when autocomplete is open)
EscapeClose search suggestions / modal / popover
jNext law card
kPrevious law card
?Show shortcuts help
Enter / SpaceActivate focused card

Search Autocomplete: When typing in the search field, suggestions appear automatically. Use arrow keys to navigate, Enter to select, or Escape to close.

Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Policies and Support

  • Security: Private vulnerability reporting and supported versions.
  • Privacy: Data-handling policy.
  • Support: Help and troubleshooting.
  • Agent Guide: Canonical instructions for AI coding agents.
  • Design System: Token and component-contract guidance.

License

This project is licensed under CC0 1.0 Universal (Public Domain).

Acknowledgments

Thanks to all contributors who have submitted Murphy's Laws over the years!


Made with love for anyone who's ever experienced Murphy's Law in action

Ask PopNx