Murphys Laws MCP server
{
"mcpServers": {
"murphys-laws": {
"command": "npx",
"args": [
"-y",
"murphys-laws-mcp@latest"
]
}
}
}{
"mcpServers": {
"murphys-laws": {
"command": "npx",
"args": [
"-y",
"murphys-laws-mcp@latest"
]
}
}
}{
"mcpServers": {
"murphys-laws": {
"command": "npx",
"args": [
"-y",
"murphys-laws-mcp@latest"
]
}
}
}{
"servers": {
"murphys-laws": {
"command": "npx",
"args": [
"-y",
"murphys-laws-mcp@latest"
]
}
}
}{
"mcpServers": {
"murphys-laws": {
"command": "npx",
"args": [
"-y",
"murphys-laws-mcp@latest"
]
}
}
}file .mcp.json (in your project root)file claude_desktop_config.jsonfile ~/.cursor/mcp.jsonfile .vscode/mcp.jsonfile ~/.codeium/windsurf/mcp_config.jsoninstall npx -y murphys-laws-mcpversion 1.2.1
What it does
An MCP server that provides access to a collection of over 1,500 Murphy's Laws. Developers can search, browse by category, retrieve random or daily laws, and submit new ones. It is for AI agents and developers who want to integrate humorous observations about life's complications into their applications.
- Query a random Murphy's Law or the law of the day in Claude Desktop or Cursor to add humor to conversations.
- Search the collection for laws matching specific topics or keywords to find relevant observations.
- Build applications that display Murphy's Laws by category or integrate law submissions from users.
Tools this server exposes
| Tool | Does |
|---|---|
| search_laws | Search the Murphy's Laws collection by keyword. |
| get_random_law | Retrieve a random Murphy's Law from the collection. |
| get_law_of_the_day | Retrieve the daily featured Murphy's Law. |
| get_law | Retrieve a specific Murphy's Law by identifier. |
| list_categories | List all available categories for browsing laws. |
| get_laws_by_category | Retrieve Murphy's Laws filtered by a specific category. |
| submit_law | Submit a new Murphy's Law to the collection. |
Before you enable it
An MCP server runs with whatever access you give it. Start with a development account rather than production, and check which tools the server exposes before you let an agent call them unattended.