{"_id":"manifold-mcp-server","_rev":"1-e03138588fb4c9ead5827248c20018c1","name":"manifold-mcp-server","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"manifold-mcp-server","version":"0.1.0","keywords":["mcp","manifold","prediction-markets","llm","claude"],"author":{"name":"Barton Rhodes"},"license":"MIT","_id":"manifold-mcp-server@0.1.0","maintainers":[{"name":"bmorphism","email":"barton@vibes.lol"}],"homepage":"https://github.com/barton/infinity-topos#readme","bugs":{"url":"https://github.com/barton/infinity-topos/issues"},"bin":{"manifold-mcp-server":"build/index.js"},"dist":{"shasum":"5d058a31705b77c18cf456535b770d996e059497","tarball":"https://registry.npmjs.org/manifold-mcp-server/-/manifold-mcp-server-0.1.0.tgz","fileCount":7,"integrity":"sha512-HblZv0fX3lozd6ReIfzQD1brizQOOCXhGjHoarJzdE7ng/6i+/jwc8B5QE1GaNzwTxJhvUFRZzxyiaIg4W+8SQ==","signatures":[{"sig":"MEUCIHjk+ytD8mjyvg1VXktB81/9G8gjJDl8pQ7naCbmUEMvAiEAqf8jD412r/b6FMiRMrx5J53pRZ/9PuH4jSs+Af0e2qM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":33869},"main":"build/index.js","type":"module","types":"build/index.d.ts","gitHead":"7ca068271a84759789f06b5f0422a8c99ab004a9","private":false,"scripts":{"dev":"ts-node-esm src/index.ts","test":"vitest","build":"tsc && chmod +x build/index.js","clean":"rm -rf build","start":"node build/index.js","prepublishOnly":"npm run clean && npm run build"},"_npmUser":{"name":"bmorphism","email":"barton@vibes.lol"},"repository":{"url":"git+https://github.com/barton/infinity-topos.git","type":"git"},"_npmVersion":"10.9.0","description":"MCP server for interacting with Manifold Markets prediction markets","directories":{},"_nodeVersion":"23.1.0","dependencies":{"zod":"^3.24.1","node-fetch":"^3.3.2","@modelcontextprotocol/sdk":"^1.1.0"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^0.34.6","ts-node":"^10.9.1","typescript":"^5.2.2","@types/node":"^20.17.12"},"_npmOperationalInternal":{"tmp":"tmp/manifold-mcp-server_0.1.0_1736420327441_0.7096744605336551","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"manifold-mcp-server","version":"0.1.1","description":"MCP server for interacting with Manifold Markets prediction markets","type":"module","main":"build/index.js","bin":{"manifold-mcp-server":"build/index.js"},"types":"build/index.d.ts","repository":{"type":"git","url":"git+https://github.com/bmorphism/manifold-mcp-server.git"},"keywords":["mcp","manifold","prediction-markets","llm","claude"],"author":{"name":"Barton Rhodes"},"license":"MIT","private":false,"scripts":{"clean":"rm -rf build","build":"tsc && chmod +x build/index.js","start":"node build/index.js","dev":"ts-node-esm src/index.ts","test":"vitest","prepublishOnly":"npm run clean && npm run build"},"dependencies":{"@modelcontextprotocol/sdk":"^1.1.0","node-fetch":"^3.3.2","zod":"^3.24.1"},"devDependencies":{"@types/node":"^20.17.12","ts-node":"^10.9.1","typescript":"^5.2.2","vitest":"^0.34.6"},"_id":"manifold-mcp-server@0.1.1","gitHead":"15a6a0d1167c3ca8a9b65e0d3f08c3ccbf5947d8","bugs":{"url":"https://github.com/bmorphism/manifold-mcp-server/issues"},"homepage":"https://github.com/bmorphism/manifold-mcp-server#readme","_nodeVersion":"23.1.0","_npmVersion":"10.9.0","dist":{"integrity":"sha512-HgQLnOMcoXC+vahu28pJeQcXtJhEbSclzYys4BGxC9RkIXHvRqVqw90FUT4hMgPuDMLnbt4BgaQq3I5geoUkqg==","shasum":"c2037743077d1d54e2d68efa2f0eea44c721b33f","tarball":"https://registry.npmjs.org/manifold-mcp-server/-/manifold-mcp-server-0.1.1.tgz","fileCount":7,"unpackedSize":37085,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQClHPDDFq0Cq0hTeaqMZterpYnfaiODG74Q9IrTPBvpagIgUjtxU2JtgEbn+NBKKXurdpplQU3jvEt3ZA/NA3CKAu8="}]},"_npmUser":{"name":"bmorphism","email":"barton@vibes.lol"},"directories":{},"maintainers":[{"name":"bmorphism","email":"barton@vibes.lol"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/manifold-mcp-server_0.1.1_1736420685850_0.968679772746619"},"_hasShrinkwrap":false}},"time":{"created":"2025-01-09T10:58:47.440Z","modified":"2025-01-09T11:04:46.169Z","0.1.0":"2025-01-09T10:58:47.611Z","0.1.1":"2025-01-09T11:04:46.018Z"},"bugs":{"url":"https://github.com/bmorphism/manifold-mcp-server/issues"},"author":{"name":"Barton Rhodes"},"license":"MIT","homepage":"https://github.com/bmorphism/manifold-mcp-server#readme","keywords":["mcp","manifold","prediction-markets","llm","claude"],"repository":{"type":"git","url":"git+https://github.com/bmorphism/manifold-mcp-server.git"},"description":"MCP server for interacting with Manifold Markets prediction markets","maintainers":[{"name":"bmorphism","email":"barton@vibes.lol"}],"readme":"# Manifold Markets MCP Server\n\nAn MCP server for interacting with Manifold Markets prediction markets. This server enables LLMs and other AI systems to seamlessly interact with prediction markets, enabling collective intelligence and decision-making through market mechanisms.\n\n## Features\n\n- Search and filter prediction markets with advanced criteria\n- Get detailed market information and analytics\n- Place bets and limit orders with precise probability specifications\n- Track user positions and portfolio performance\n- Send mana between users\n- Manage market liquidity\n- Cancel and sell positions\n\n## Installation\n\n```bash\nnpm install manifold-mcp-server\n```\n\n## Configuration\n\nThe server requires a Manifold Markets API key for authenticated operations. You can get your API key from your Manifold Markets profile settings.\n\nSet your API key as an environment variable:\n\n```bash\nexport MANIFOLD_API_KEY=your_api_key_here\n```\n\n## Usage with Claude Desktop\n\nAdd the server to your Claude Desktop configuration (`~/Library/Application Support/Claude/claude_desktop_config.json`):\n\n```json\n{\n  \"mcpServers\": {\n    \"manifold\": {\n      \"command\": \"node\",\n      \"args\": [\"/path/to/manifold-mcp-server/build/index.js\"],\n      \"env\": {\n        \"MANIFOLD_API_KEY\": \"your_api_key_here\"\n      }\n    }\n  }\n}\n```\n\n## Available Tools\n\n### search_markets\nSearch for prediction markets with optional filters:\n- term: Search query\n- limit: Max number of results (1-100)\n- filter: 'all', 'open', 'closed', or 'resolved'\n- sort: 'newest', 'score', or 'liquidity'\n\n### get_market\nGet detailed information about a specific market:\n- marketId: Market ID\n\n### get_user\nGet user information by username:\n- username: Username\n\n### place_bet\nPlace a bet on a market:\n- marketId: Market ID\n- amount: Amount to bet in mana\n- outcome: 'YES' or 'NO'\n- limitProb: Optional limit order probability (0.01-0.99)\n\n### cancel_bet\nCancel a limit order bet:\n- betId: Bet ID to cancel\n\n### sell_shares\nSell shares in a market:\n- marketId: Market ID\n- outcome: Which type of shares to sell ('YES' or 'NO', defaults to what you have)\n- shares: How many shares to sell (defaults to all)\n\n### add_liquidity\nAdd mana to market liquidity pool:\n- marketId: Market ID\n- amount: Amount of mana to add\n\n### get_positions\nGet user positions across markets:\n- userId: User ID\n\n### send_mana\nSend mana to other users:\n- toIds: Array of user IDs to send mana to\n- amount: Amount of mana to send (min 10)\n- message: Optional message to include\n\n## Example: The Xenoduck Society's Quantum Navigation Dilemma\n\nThe Xenoduck Society of Restless Mind from the Pleiades Cluster uses prediction markets to make critical decisions about their interstellar ventures. Here's how they might use the Manifold MCP Server to gather collective intelligence about a new quantum navigation technology:\n\n```typescript\n// Search for relevant markets\nconst searchResponse = await use_mcp_tool({\n  name: \"search_markets\",\n  arguments: {\n    term: \"quantum navigation success probability\",\n    filter: \"open\",\n    sort: \"liquidity\"\n  }\n});\n\n// Get details of the most relevant market\nconst marketDetails = await use_mcp_tool({\n  name: \"get_market\",\n  arguments: {\n    marketId: \"quantum-nav-2024\"\n  }\n});\n\n// The Council of Elder Ducks places a bet\nconst betResponse = await use_mcp_tool({\n  name: \"place_bet\",\n  arguments: {\n    marketId: \"quantum-nav-2024\",\n    amount: 1000,\n    outcome: \"YES\",\n    limitProb: 0.75 // They're quite confident!\n  }\n});\n\n// Junior Navigator Quacksworth adds liquidity\nconst liquidityResponse = await use_mcp_tool({\n  name: \"add_liquidity\",\n  arguments: {\n    marketId: \"quantum-nav-2024\",\n    amount: 500\n  }\n});\n\n// Check the Society's positions\nconst positions = await use_mcp_tool({\n  name: \"get_positions\",\n  arguments: {\n    userId: \"xenoduck-society\"\n  }\n});\n\n// Reward successful predictions\nconst rewardResponse = await use_mcp_tool({\n  name: \"send_mana\",\n  arguments: {\n    toIds: [\"quacksworth\", \"elder-duck-1\", \"elder-duck-2\"],\n    amount: 100,\n    message: \"Thank you for your accurate quantum navigation predictions!\"\n  }\n});\n```\n\nIn this example, the Xenoduck Society uses prediction markets to:\n1. Aggregate knowledge about quantum navigation technology\n2. Allow experts to signal their confidence through bet sizes and limit orders\n3. Maintain market efficiency through liquidity provision\n4. Track their collective positions\n5. Reward successful predictors\n\nThis demonstrates how prediction markets can help even advanced civilizations make better decisions through collective intelligence!\n\n## Development\n\n```bash\n# Install dependencies\nnpm install\n\n# Build\nnpm run build\n\n# Start the server\nnpm start\n\n# Run in development mode\nnpm run dev\n\n# Run tests\nnpm test\n```\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request. We're particularly interested in:\n- Additional market analysis tools\n- Enhanced probability calibration features\n- Integration with other prediction market platforms\n- Improved documentation and examples\n\n## License\n\nMIT\n","readmeFilename":"README.md"}