{"openapi":"3.1.0","info":{"title":"Chess Sim — chess tools for your AI: forced-mate finder, best move, legal moves, opening names","version":"1.0.0","description":"Chess Sim: chess analysis inside your AI (MCP server + pay-per-call API). Forced-mate search (mate in 1-3), lightweight best-move engine, plus FREE position check (FEN/PGN validation, legal moves, check/mate/draw status, material) and opening lookup (ECO names). Paid tools from $0.001 via MPP on Tempo, no account; invalid input is never charged. Docs: https://chess-sim.fmf-x402.workers.dev/docs — copy-paste examples for the mppx CLI, curl, the TypeScript SDK (mppx) and the Python SDK (pympp), plus an MCP config. Machine-readable: https://chess-sim.fmf-x402.workers.dev/llms.txt and https://chess-sim.fmf-x402.workers.dev/openapi.json. MCP (Streamable HTTP): https://chess-sim.fmf-x402.workers.dev/mcp. Fleet of sister services: https://mpp-docs.fmf-x402.workers.dev, https://mpp-agent-data.fmf-x402.workers.dev, https://mpp-tools.fmf-x402.workers.dev, https://mpp-ai.fmf-x402.workers.dev, https://mpp-research.fmf-x402.workers.dev, https://mpp-chain.fmf-x402.workers.dev, https://mtg-sim.fmf-x402.workers.dev, https://mpp-stt.fmf-x402.workers.dev, https://controlplane-x402.fmf-x402.workers.dev, https://pokemon-tcg-sim.fmf-x402.workers.dev, https://yugioh-sim.fmf-x402.workers.dev, https://mpp-cryptotax.fmf-x402.workers.dev, https://mpp-biz.fmf-x402.workers.dev, https://lorcana-sim.fmf-x402.workers.dev, https://onepiece-sim.fmf-x402.workers.dev, https://hearthstone-sim.fmf-x402.workers.dev, https://chess-sim.fmf-x402.workers.dev, https://dota2-sim.fmf-x402.workers.dev, https://cs2-sim.fmf-x402.workers.dev. Chess Sim is run by FMF Tools. Opening names from lichess chess-openings (CC0); move rules via chess.js (BSD-2). Free tools stay free; paid tools sell only our own computation.","x-guidance":"POST JSON (or GET with query params) to any /mpp/* route and pay the 402 challenge with MPP on Tempo (USDC.e or pathUSD, WWW-Authenticate: Payment) or x402 v2 on Base (USDC, PAYMENT-REQUIRED / PAYMENT-SIGNATURE headers). Bad input or an upstream failure returns 402 with an error and you are not charged.","contact":{"name":"FMF Tools","url":"https://chess-sim.fmf-x402.workers.dev/docs","email":"fmf-tools@agentmail.to"},"x-docs":"https://chess-sim.fmf-x402.workers.dev/docs","x-mcp":"https://chess-sim.fmf-x402.workers.dev/mcp","x-llms":"https://chess-sim.fmf-x402.workers.dev/llms.txt","x-fmf-id":"chess-sim"},"servers":[{"url":"https://chess-sim.fmf-x402.workers.dev"}],"paths":{"/mpp/chess/mate-search":{"post":{"operationId":"chess_mate_search","summary":"Chess forced-mate finder: mate in 1 to 3","description":"Exhaustive search for a forced checkmate for the side to move (every defence checked), up to mate in 3, with the first move and a sample line. Reports when the search budget runs out instead of guessing. Price $0.001 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"fen":{"type":"string","description":"FEN"},"pgn":{"type":"string","description":"or moves"},"max_moves":{"type":"integer","description":"1-3, default 2"}}},"example":{"fen":"r1bqkb1r/pppp1ppp/2n2n2/4p2Q/2B1P3/8/PPPP1PPP/RNB1K1NR w KQkq - 4 4","max_moves":2}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}},{"x402":{"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.001"}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"402":{"description":"Payment required (MPP, Tempo USDC.e or pathUSD); also returned with an error message, not charged, for invalid input"}}}},"/mpp/chess/best-move":{"post":{"operationId":"chess_best_move","summary":"Chess best move: lightweight engine evaluation","description":"Quick alpha-beta search (2-4 plies within a fixed node budget, plus capture quiescence, material + piece-square evaluation) returning the best move, evaluation and top 5 moves. Lightweight, not Stockfish: good for short tactics and blunder checks. Price $0.003 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"fen":{"type":"string","description":"FEN"},"pgn":{"type":"string","description":"or moves"},"depth":{"type":"integer","description":"1-4, default 3"}}},"example":{"pgn":"1. e4 e5 2. Nf3 Nc6 3. Bc4 Nd4","depth":3}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}},{"x402":{"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.003"}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"402":{"description":"Payment required (MPP, Tempo USDC.e or pathUSD); also returned with an error message, not charged, for invalid input"}}}}},"externalDocs":{"description":"Copy-paste examples (CLI, curl, TypeScript, Python, MCP)","url":"https://chess-sim.fmf-x402.workers.dev/docs"},"components":{"securitySchemes":{"Payment":{"type":"http","scheme":"Payment","description":"MPP Payment credential on Tempo (USDC.e or pathUSD). Clients such as mppx handle the 402 challenge automatically. See https://mpp.dev/sdk"}}},"tags":[{"name":"paid","description":"Pay-per-call MPP routes. Unpaid requests receive 402. Invalid input is not charged."},{"name":"discovery","description":"Free discovery surfaces: /docs, /llms.txt, /openapi.json, /mcp, /health."}]}