
Murphys Laws
com.murphys-lawsPublished by murphys-laws.comv1.2.5Updated Oct 24, 2026
Access thousands of Murphy's Laws: search, browse by category, random, daily, submit.
Overview
Access a collection of humorous observations about life's tendency for things to go wrong via this local MCP server.
- What you can do
- Retrieve Murphy's Laws by searching, browsing categories, or getting a random law. It allows users to view the daily law or submit new laws for consideration.
- When to use it
- Use this server when you want an AI assistant to access a curated, humorous collection of Murphy's Laws for trivia or creative context.
- Requirements
- Runs as a local process via npm package installation. No external API keys or environment variables are declared.
Installation
In SourceWeft
- Open Murphys Laws in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
Murphy's Laws
[PRs Welcome] [Maintenance] [License: CC0-1.0] [Node.js] [iOS] [Android]
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
- Web: https://murphys-laws.com (PWA - installable, works offline)
- iOS: Coming Soon
- Android: Coming Soon
AI & Developer Integration
Four official ways to integrate Murphy's Laws. No API key for reads.
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.
Command-line interface
murphys-laws-cli on npm wraps the API for scripts and terminal use.
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:
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:
Quick Start
Backend (API Server)
Web Application
iOS App
Android App
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
Development
Prerequisites
- Node.js 22+
- For iOS: macOS, Xcode 15+
- For Android: Android Studio Hedgehog+, JDK 17+
Install Dependencies
Run Development Servers
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):
Building
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.
Keyboard Shortcuts (Web)
Press ? anywhere on the site to see all available shortcuts:
Search Autocomplete: When typing in the search field, suggestions appear automatically. Use arrow keys to navigate, Enter to select, or Escape to close.
Contributing
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - 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
Source: README.md at commit f771fd8
Tools
0Version history
2- v1.2.5LatestOct 24, 2026
- v1.2.1Sep 16, 2026
Score
40% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
Declare a license in the repository or the registry entry.