Context7
Up-to-date docs for AI agents
作者による説明(英語の原文)
Access thousands of Murphy's Laws: search, browse by category, random, daily, submit.
この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。
このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。
使っているAIアプリを選んで、設定をコピーしてください。
必要なもの
どのアプリを使っていますか?
上でアプリを選んでください。選んだアプリを覚えておくので、次からはボタンに「…にインストール」と表示されます。
Claude Desktop → Settings → Developer → Edit Config を開き、claude_desktop_config.json にこれを貼り付けます
{
"mcpServers": {
"murphys-laws": {
"command": "npx",
"args": [
"-y",
"murphys-laws-mcp"
]
}
}
}ターミナルでこれを実行します
claude mcp add murphys-laws -- npx -y murphys-laws-mcpプロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます
{
"mcpServers": {
"murphys-laws": {
"command": "npx",
"args": [
"-y",
"murphys-laws-mcp"
]
}
}
}ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。
プロジェクトの .vscode/mcp.json に貼り付けます
{
"servers": {
"murphys-laws": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"murphys-laws-mcp"
]
}
}
}ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。
これはパソコンで動くサーバーですが、ChatGPTがつなげるのはインターネット上のサーバーだけです。ほかのアプリを選んでください。
選んだアプリは、この端末のCookieに保存されます。アカウントは不要です。
この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。
パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。
誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月6日にチェック
レジストリ名はドメイン murphys-laws.com で確認済みです(レジストリがドメインの所有を確認しています)
このリポジトリはまだGitHubから読み取っていません
このリポジトリはまだGitHubから読み取っていません
これはパソコンで動くため、インターネット上のエンドポイントはありません
パソコンで動き、代わりにローカルの設定を使います
パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです
レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。
当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。
レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。
あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。
GitHubリポジトリの最終更新は–、最新バージョン(1.2.5)がレジストリに届いたのは13 日前です。
Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにNode.jsも必要です。
同じカテゴリには:Context7, Codebase Memory, Exa
同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。
カードの見方:★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i
Up-to-date docs for AI agents
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。
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.
Four official ways to integrate Murphy's Laws. No API key for reads.
| Package | npm | Purpose |
|---|---|---|
murphys-laws-sdk | Typed TypeScript client, zero deps | |
murphys-laws-cli | Command-line interface (npx murphys-laws-cli) | |
murphys-laws-mcp | Model 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.
Public API at https://murphys-laws.com/api/v1/, no auth required for reads.
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();
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
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.
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
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
cd web
npm install npm run dev # Start dev server
cd ios
open MurphysLaws.xcodeproj
cd android
./gradlew assembleDebug
# Run all tests (backend, web, SDK, CLI, and MCP)
npm test
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
# Install all dependencies (root and workspaces)
npm run install:all
cd backend && npm install cd web && npm install
# Run backend + web concurrently
npm run dev
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.
If you encounter EADDRINUSE errors (port already in use):
# Check which processes are using development ports
npm run cleanup-ports
npm run cleanup-ports -- --kill
lsof -i :8787 # Check API port lsof -i :5175 # Check frontend port kill # Kill the process
# Generate OpenAPI and build the web app
npm run build
npm run build:web npm run build:backend:db
tsx (no JS build step required for startup).backend/src/server/api-server.ts.node --import tsx.shared/modules/*.ts.See Deployment Guide for detailed instructions.
# Deploy web app (builds and syncs to production)
npm run deploy
Press ? anywhere on the site to see all available shortcuts:
| Shortcut | Action |
|---|---|
/ | Focus search |
↑ / ↓ | Navigate search suggestions (when autocomplete is open) |
Enter | Select search suggestion (when autocomplete is open) |
Escape | Close search suggestions / modal / popover |
j | Next law card |
k | Previous law card |
? | Show shortcuts help |
Enter / Space | Activate 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.
git checkout -b feature/amazing-feature)git commit -m 'Add amazing feature')git push origin feature/amazing-feature)This project is licensed under CC0 1.0 Universal (Public Domain).
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