Skip to main content
Glama
finnestprogrammer111

Pyramid Solver MCP

Pyramid Solver MCP

CI Deploy to Render

An interactive solver for the 4×4 sliding puzzle. It works in two modes:

  • as an MCP App rendered inside ChatGPT;

  • as a regular browser app at the server root.

The project uses React for the widget, the official Model Context Protocol SDK for the server, and a self-contained Vite build that can be returned as an MCP UI resource.

MCP tools

Tool

What it does

open_pyramid_solver

Opens the blank interactive solver.

solve_pyramid

Solves 16 tile positions supplied row by row. Use 0 for the empty slot.

The solver offers fast Weighted A* and optimal IDA* modes.

Related MCP server: playwright-mcp-server

Run locally

Requirements: Node.js 20 or newer.

npm install
npm run build
npm start

Open http://localhost:8787 for browser mode. The Streamable HTTP MCP endpoint is:

http://localhost:8787/mcp

Test

npm test
npm run build
npm run smoke

You can inspect the MCP server with:

npx @modelcontextprotocol/inspector@latest

Choose Streamable HTTP and connect to http://localhost:8787/mcp.

Deploy to a public URL

The quickest path is the Deploy to Render button at the top of this README:

  1. Sign in to Render and allow it to access this GitHub repository.

  2. Keep the Blueprint settings and choose Deploy Blueprint.

  3. Wait for the service to become Live.

  4. Copy the generated URL, such as https://pyramid-solver-mcp.onrender.com.

  5. Check that <your-url>/health returns {"ok":true}.

The included render.yaml builds the Dockerfile, checks /health, and deploys changes only after GitHub CI passes. Render's free service can take longer to answer after being idle.

Connect it to ChatGPT

ChatGPT requires a public HTTPS MCP endpoint. After deployment:

  1. In ChatGPT, open Settings → Security and login → Developer mode and enable it.

  2. Open Plugins and select the + button.

  3. Enter a name such as Pyramid Solver and a short description.

  4. Set the endpoint to your complete Render URL ending in /mcp, for example https://pyramid-solver-mcp.onrender.com/mcp.

  5. Review the discovered tools and finish adding the plugin.

If tool definitions change after a later deployment, refresh the plugin so ChatGPT loads the new metadata. See OpenAI's Connect your MCP server to ChatGPT guide for the current interface.

Once connected, try Open the Pyramid Solver or provide a board such as:

1 2 3 4
5 6 7 8
9 10 11 12
13 14 0 15

Useful checks:

  • Open the Pyramid Solver.

  • Solve this board with A*: 1 2 3 4 / 5 6 7 8 / 9 10 11 12 / 13 14 0 15.

  • Solve this board optimally with IDA*: 1 2 3 4 / 5 6 7 8 / 9 10 11 12 / 13 14 0 15.

Docker

docker build -t pyramid-solver-mcp .
docker run --rm -p 8787:8787 pyramid-solver-mcp

Project structure

src/PyramidSolver.jsx  React interface
src/solver.js           A* and IDA* solver engine
src/mcpBridge.js        MCP Apps UI bridge
server.js               Streamable HTTP MCP server
test/solver.test.js     Solver tests

License

MIT

A
license - permissive license
Not graded
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    A fully local MCP server for browser automation using Playwright, providing 25 tools for navigation, content extraction, mouse, form, and keyboard interactions.
    1,251
    MIT
  • F
    license
    Not graded
    quality
    D
    maintenance
    A browser automation MCP server providing 30 tools for navigation, interaction, page information, state checks, tab management, and more, enabling natural language control of browsers via MCP-compatible clients.
  • F
    license
    Not graded
    quality
    B
    maintenance
    Standalone browser automation MCP server supporting both BrowserOS and standard Chrome. Enables 16 MCP tools for browser control including navigation, interaction, and content extraction.
    13

View all related MCP servers

Related MCP Connectors

  • 20 MCP tools + 17 widgets for SAT/ISEE/SSAT/GRE/GMAT/LSAT prep. Flashcards, quizzes & games. Hosted.

  • Educational MCP server with 17 math/stats tools, visualizations, and persistent workspace

  • Live browser debugging for AI assistants — DOM, console, network via MCP.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/finnestprogrammer111/pyramid-solver-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server