Skip to main content
Glama

MCPqxbin

MCP server for the QxBin Prompt Generator

Probabilistic prompt engineering using Binary Probability Matrices.
Room-temperature classical cubit logic that evolves and collapses optimal prompts.

By Rupesh Malpani / pikk.company


What it does

Treats prompt construction as a multi-dimensional probability landscape:

  1. Atom library — Role / Reasoning / Structure / Quality / Constraint

  2. Binary Probability Matrix — spatial grid of fractional probabilities

  3. Superposition — bias**n + (1-bias)**m steers probability mass

  4. Measurement — collapses to the highest-leverage prompt

Two modes:

Tool

Mode

Description

generate_optimal_prompt

Edge

Single cubit, fast, seedable

generate_ensemble_prompt

Cloud

Parallel ensemble, picks global champion

list_prompt_atoms

—

Inspect the atom library


Related MCP server: Clarifyprompt-MCP

Quick Start (Local / Claude / Cursor)

# One-shot run (stdio — default)
uvx --from git+https://github.com/pikk-qxbin/MCPqxbin.git mcpqxbin

# Or install
pip install git+https://github.com/pikk-qxbin/MCPqxbin.git
mcpqxbin

Claude Desktop / Cursor config (stdio)

{
  "mcpServers": {
    "mcpqxbin": {
      "command": "uvx",
      "args": ["--from", "git+https://github.com/pikk-qxbin/MCPqxbin.git", "mcpqxbin"]
    }
  }
}

Deploy to Railway (permanent public URL for Grok)

The repo is Railway-ready (Dockerfile + $PORT support).

Steps

  1. Go to https://railway.app and sign in (GitHub login works)

  2. New Project → Deploy from GitHub repo

  3. Select pikk-qxbin/MCPqxbin (or your fork)

  4. Railway detects the Dockerfile and deploys

  5. After deploy succeeds:

    • Open the service → Settings → Networking

    • Click Generate Domain

  6. Your public MCP URL is:

https://YOUR-SERVICE.up.railway.app/mcp

Add to Grok

  1. Open → https://grok.com/connectors

  2. New Connector → Custom

  3. Paste: https://YOUR-SERVICE.up.railway.app/mcp

  4. Save

Then just say:

Use the QxBin prompt generator on this goal: …


Local HTTP mode (testing / tunnel)

mcpqxbin --transport streamable-http --host 0.0.0.0 --port 8000

# then tunnel
ngrok http 8000
# or
cloudflared tunnel --url http://localhost:8000

Example

Tool call: generate_optimal_prompt

goal: Write a sharp cold email to Mark Cuban about Pikkstops + QxBin
extra_context: Bootstrapped, under 180 words, first principles only
bias: 0.84

Returns a fully structured, high-signal prompt ready for any LLM.


Core QxBin Math

  • Fractional states: bias**n and (1-bias)**m

  • Probability Matrix: 2D grid for multi-dimensional state

  • Superposition blend + chain evolution

  • Probabilistic measurement / collapse

Part of the pikk-qxbin ecosystem.


License

License

This repository is released under the official QxBin dual license (Apache 2.0 or MIT) with commercial terms.

Key terms:

  • Free for testing, experimentation, internal organizational use, and building your own software or improvements using your development resources.

  • 51% revenue share with the copyright holders applies when you create and sell a commercial tool, product, or API (whether for commercial customers or personal/end users) that incorporates or is substantially derived from QxBin logic.

  • Enterprise-scale deployments and strategic partnerships are fully negotiable — reach out to @rupeshmalpani.

See the full LICENSE file for complete details.

Part of the pikk-qxbin vision: Democratizing advanced compute. Ship fast. Align incentives for long-term progress.

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    This MCP server provides research-backed prompt optimization tools and professional domain templates designed to improve AI performance through strategies like Tree of Thoughts and Medprompt. It enables users to analyze, auto-optimize, and refine prompts using advanced reasoning patterns and safety-critical alignment techniques.
    25
    MIT
  • A
    license
    A
    quality
    B
    maintenance
    An MCP server that transforms vague prompts into platform-optimized prompts for 58 AI platforms across 7 categories. Send a raw prompt. Get back a version specifically optimized for Midjourney, DALL-E, Sora, Runway, ElevenLabs, Claude, ChatGPT, or any of the 58 supported platforms — with the right syntax, parameters, and structure each platform expects.
    23
    110 npm
    13
    Apache 2.0
  • A
    license
    A
    quality
    D
    maintenance
    An MCP server for deterministic prompt optimization in Claude Code. Score prompts across 7 quality dimensions, auto-select from 11 Anthropic techniques, and return a structural scaffold.
    1
    7 npm
    2
    MIT