Cubi MCP Playground
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Cubi MCP Playgroundstart the mock with the default profile"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Cubi MCP Playground
Repo: https://github.com/jhonigberg-cubi/cubi-mcp-playground
cubi-mcp-playground is a local prototype repo for teams that want to work on Cubi-style integrations before sandbox onboarding is complete, while sandbox is down, or while they are still designing the user experience and testing flows.
It gives you three things in one place:
a Cubi-compatible localhost HTTP mock
an MCP server that can manage that mock
a browser UI so someone can try the workflow without learning the MCP protocol first
The main design goal is to let an app stay in CUBI_MODE=real and point to localhost. That means your app still exercises token fetch, HTTP routing, path composition, create calls, polling, and health checks as if it were talking to a real environment.
Why This Repo Exists
Most mock integrations stop at one of these:
in-process fake classes for unit tests
raw API fixtures with no running endpoint
a mock HTTP server with no easy onboarding path
This repo is intended to cover the next layer up:
manual UI design and workflow prototyping
end-to-end application testing against a live local endpoint
MCP-assisted setup so a user can ask a tool to stand up the mock and get the right env bundle back immediately
Related MCP server: mock-mcp
What Is In The Repo
Core Runtime
server/mock_cubi_server.py Standalone Cubi-compatible HTTP mock
server/manager.py Shared runtime manager used by both the UI server and the MCP server
MCP Layer
server/mcp_server.py Exposes the mock lifecycle and demo actions as MCP tools/resources
Browser Playground
server/playground.py Small local web server for the browser UI
Profiles
These profiles are simple labels right now, but the mock behavior changes based on the selected profile:
defaultbalanced seed data and normal accepted -> processing -> settled progressionreturnsACH-heavy behavior and easy-to-demonstrate return outcomesrepairmuch lower repair threshold so pending-repair states are easy to triggerwire-heavymore wire-oriented seeded transaction mix
What The Mock Supports
The HTTP mock currently supports:
POST /security/v1/oauth2/tokenGET /accounts/v1/GET /accounts/v1/{account_id}/transactionsPOST /ach/v1/outgoing/debitPOST /ach/v1/outgoing/creditPOST /wires/v1/outgoingGET /ach/v1/outgoing/{payment_id}GET /wires/v1/outgoing/{payment_id}GET /health
This is enough for:
health checks
account/transaction browsing
demo payment creation
status polling
env wiring into a host app
Prerequisites
You need:
Python 3.12+ available on
PATHPowerShell
local ability to open a browser on
127.0.0.1
The only external Python dependency for this repo is the MCP SDK:
Step-By-Step: First Run
Step 0: Clone The Repo
git clone https://github.com/jhonigberg-cubi/cubi-mcp-playground.git
cd cubi-mcp-playgroundStep 1: Create A Virtual Environment
From the repo root:
python -m venv .venvStep 2: Install Dependencies
.venv\Scripts\python -m pip install -r requirements.txtToday that installs:
mcp[cli]==1.26.0
The browser playground and the mock HTTP server are stdlib-based, so the MCP SDK is the only runtime dependency you need.
Step 3: Start The Browser Playground
powershell -ExecutionPolicy Bypass -File .\scripts\start-playground.ps1By default the playground starts on:
http://127.0.0.1:8765
If you want a different UI port:
powershell -ExecutionPolicy Bypass -File .\scripts\start-playground.ps1 -Port 8780Step 4: Open The UI
Open:
http://127.0.0.1:8765
At this point the UI server is running, but the Cubi mock endpoint is not running yet.
Step 5: Start The Mock From The UI
In the browser:
Leave
Bind Hostas127.0.0.1Leave
Portas8791or choose another local portChoose a profile such as
defaultOptionally check
Reset state on startClick
Start Mock
The UI will:
start the local Cubi-compatible HTTP mock
show the
/healthpayloadgenerate the env bundle your app can consume
generate an MCP config snippet for the MCP server
Step 6: Point Your App At The Mock
Copy the Env Bundle block from the UI and place it into a local override env file for your app.
The most important values are:
CUBI_MODE=real
CUBI_BASE_URL=http://127.0.0.1:8791
CUBI_TOKEN_URL=http://127.0.0.1:8791/security/v1/oauth2/token
CUBI_CLIENT_ID=mock-client
CUBI_CLIENT_SECRET=mock-secret
CUBI_ACCOUNTS_PATH=/accounts/v1/
CUBI_TRANSACTIONS_PATH_TEMPLATE=/accounts/v1/{account_id}/transactionsThat keeps your app in real HTTP mode while pointing at localhost.
Step-By-Step: Using The Browser UI
The UI is meant to be useful even for someone who does not care about MCP yet.
Mock Runtime Panel
Use this panel to:
choose the mock port
choose a scenario profile
start the mock
stop the mock
reset persisted state
inspect the current
/healthresult
Env Bundle Panel
Use this when:
you want to wire another app to the mock
you want a teammate to copy the exact localhost config
you want a stable local “sandbox replacement” file
MCP Config Panel
Use this when:
you want to connect Claude Code or another MCP client
you want to see the exact command and cwd needed to launch the repo MCP server
Accounts Panel
Click Load to fetch seeded accounts from the running mock. Clicking an account card loads recent transactions and displays them in the demo output panel.
Demo Payment Panel
Use this to simulate create and poll flows without a second application.
Example:
Select
WIRELeave direction as
DEBITEnter amount
1200.00Click
CreateClick
Poll Latest
Typical progression:
create ->
ACCEPTEDfirst poll ->
IN_PROCESSlater poll ->
SETTLED
If you choose the repair profile or omit a wire routing value, you can quickly demo non-happy-path outcomes too.
Step-By-Step: Running The MCP Server
The MCP server is separate from the browser UI. The UI is for people; the MCP server is for tools/agents/clients.
Option 1: Run MCP Over Stdio
This is the simplest local integration pattern.
.venv\Scripts\python -m server.mcp_serverThis launches the MCP server in stdio mode.
Option 2: Run MCP Over Streamable HTTP
This is useful for local inspector-style testing or for environments that prefer an HTTP MCP transport.
.venv\Scripts\python -m server.mcp_server --transport streamable-http --host 127.0.0.1 --port 8811Or via the helper script:
powershell -ExecutionPolicy Bypass -File .\scripts\start-mcp-http.ps1MCP Tools Included
The MCP server currently exposes these tools:
ensure_cubi_mock_runningstop_cubi_mockreset_cubi_mock_stateget_cubi_mock_envget_cubi_mock_healthget_cubi_mock_mcp_configlist_cubi_mock_accountslist_cubi_mock_transactionscreate_cubi_mock_paymentpoll_cubi_mock_payment
It also exposes resources:
cubi-mock://envcubi-mock://health
Example MCP Usage Flow
If you connect an MCP client to this repo, the happy-path flow is:
Call
ensure_cubi_mock_runningRead the returned env bundle
Start or reconfigure the target app to use those env vars
Optionally call
list_cubi_mock_accountsOptionally call
create_cubi_mock_paymentPoll it with
poll_cubi_mock_payment
This is the onboarding shortcut: a user does not need sandbox credentials just to begin building or demoing the workflow.
Example Claude Code MCP Config
The manager and UI generate a config snippet, but the default shape is:
{
"mcpServers": {
"cubi-mock-playground": {
"command": "C:\\Users\\you\\Documents\\cubi-mcp-playground\\.venv\\Scripts\\python.exe",
"args": ["-m", "server.mcp_server"],
"cwd": "C:\\Users\\you\\Documents\\cubi-mcp-playground"
}
}
}Use the snippet generated by the browser UI — it fills in your exact paths automatically.
If you prefer streamable HTTP instead of stdio, run the HTTP MCP transport separately and point your client at that URL according to the client’s MCP configuration format.
Example: Pointing Another App At The Mock
Suppose your target app already knows how to talk to Cubi and has env vars like:
CUBI_BASE_URLCUBI_TOKEN_URLCUBI_CLIENT_IDCUBI_CLIENT_SECRETCUBI_ACCOUNTS_PATHCUBI_TRANSACTIONS_PATH_TEMPLATE
You do not need to patch the app code first. Start the mock and then apply:
CUBI_MODE=real
CUBI_BASE_URL=http://127.0.0.1:8791
CUBI_TOKEN_URL=http://127.0.0.1:8791/security/v1/oauth2/token
CUBI_CLIENT_ID=mock-client
CUBI_CLIENT_SECRET=mock-secretThe app should then:
fetch a token from localhost
call accounts and transactions on localhost
create/poll payments against localhost
That is usually a much better prototype path than building app-specific fake adapters first.
File And Runtime Behavior
State
The mock state is persisted under:
.runtime/mock_cubi_state.json
That means:
created payments survive server restarts
poll counts survive restarts
seeded profile data can be reset explicitly
Process Tracking
The manager keeps process metadata in:
.runtime/mock_cubi_process.json
This is how the UI and MCP server know whether a mock process is expected to be running.
Common Commands
Start The Browser Playground
powershell -ExecutionPolicy Bypass -File .\scripts\start-playground.ps1Start MCP Over HTTP
powershell -ExecutionPolicy Bypass -File .\scripts\start-mcp-http.ps1Start MCP Over Stdio
.venv\Scripts\python -m server.mcp_serverStart The Raw Mock Endpoint Only
.venv\Scripts\python -m server.mock_cubi_server --host 127.0.0.1 --port 8791 --state-file .runtime\mock_cubi_state.jsonTroubleshooting
The UI Loads But The Mock Is Offline
That usually means the playground server is up, but the mock has not been started yet. Click Start Mock.
The Mock Will Not Start On The Default Port
Pick a different mock port in the UI, for example 8795, and start again. Then copy the updated env bundle.
My App Still Talks To Sandbox
That usually means the app did not load the local override env file. Confirm the effective values for:
CUBI_BASE_URLCUBI_TOKEN_URLCUBI_CLIENT_IDCUBI_CLIENT_SECRET
I Want A Clean Demo State
Use Reset State, then start the mock again with the profile you want.
Suggested Next Enhancements
If this repo is going to become public or shared widely, the next useful additions would be:
Docker support
GitHub Actions smoke tests
canned sample app integrations
a richer profile system with explicit scenario fixtures
one-click export of
.env.localfiles for known host apps
This server cannot be installed
Maintenance
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
- AlicenseAqualityDmaintenanceA lightweight, local-first MCP server for executing HTTP requests and managing API collections and environments without cloud dependencies. It enables testing APIs, handling authentication, and importing OpenAPI specifications directly within MCP-compatible workflows.421944MIT
- FlicenseNot gradedqualityDmaintenanceProvides a Docker-based development environment with Python and Node.js MCP servers, enabling file operations, SQL queries, Redis caching, and debugging for building and testing MCP servers.
- FlicenseNot gradedqualityCmaintenanceEnables MCP-compliant agents to perform data discovery, schema matching, and export via HTTP, with a mock mode for demonstration.
Related MCP Connectors
Hosted MCP endpoint with realistic fake data for prototyping agents. 12 tools, no setup.
MCP server for secureFlows: token-free URL builders and integration-linting tools for AI agents.
MCP server for AI access to SmartBear tools, including BugSnag, Reflect, Swagger, PactFlow, QTM4J.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/jhonigberg-cubi/cubi-mcp-playground'
If you have feedback or need assistance with the MCP directory API, please join our Discord server