Unified MCP Server for RationalBloks - Backend API + Frontend Generation for AI agents
Project description
RationalBloks MCP Server
Unified MCP Server for RationalBloks - Build fullstack applications with AI agents. Connect Claude Desktop, Cursor, VS Code Copilot to manage backends AND generate frontends.
🚀 What's New in v0.2.1
Unified Package - Single package with 3 modes:
- full: All 23 tools (backend + frontend) - DEFAULT
- backend: 18 API/database tools
- frontend: 5 frontend generation tools
Installation
# Using uv (recommended)
uv pip install rationalbloks-mcp
# Using pip
pip install rationalbloks-mcp
Quick Start
1. Get Your API Key
- Visit rationalbloks.com/settings
- Create an API Key
- Copy the key (format:
rb_sk_...)
2. Configure Your AI Agent
VS Code / Cursor
Add to settings.json:
{
"mcp.servers": {
"rationalbloks": {
"command": "rationalbloks-mcp",
"env": {
"RATIONALBLOKS_API_KEY": "rb_sk_your_key_here",
"RATIONALBLOKS_MODE": "full"
}
}
}
}
Reload window: Ctrl+Shift+P → "Developer: Reload Window"
Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"rationalbloks": {
"command": "rationalbloks-mcp",
"env": {
"RATIONALBLOKS_API_KEY": "rb_sk_your_key_here",
"RATIONALBLOKS_MODE": "full"
}
}
}
}
Config location:
- Windows:
%APPDATA%\Claude\claude_desktop_config.json - macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
Modes
Full Mode (Default) - 23 Tools
All tools for complete fullstack development:
export RATIONALBLOKS_MODE=full
rationalbloks-mcp
# or just: rationalbloks-mcp (full is default)
Backend Mode - 18 Tools
API and database operations only:
export RATIONALBLOKS_MODE=backend
rationalbloks-mcp
# or: rationalbloks-mcp-backend
Frontend Mode - 5 Tools
Frontend generation only:
export RATIONALBLOKS_MODE=frontend
rationalbloks-mcp
# or: rationalbloks-mcp-frontend
Available Tools
Backend Tools (18)
Read Operations (11):
list_projects- List all projectsget_project- Get project detailsget_schema- Get JSON schemaget_user_info- Get user informationget_job_status- Check deployment statusget_project_info- Detailed project infoget_version_history- Git historyget_template_schemas- Available templates ⭐ Start here!get_subscription_status- Plan and limitsget_project_usage- Resource metricsget_schema_at_version- Schema at specific commit
Write Operations (7):
create_project- Create new project from schemaupdate_schema- Update project schemadeploy_staging- Deploy to stagingdeploy_production- Deploy to productiondelete_project- Delete projectrollback_project- Rollback to previous versionrename_project- Rename project
Frontend Tools (5)
clone_template- Clone rationalbloksfront templateget_template_structure- Explore template file structureread_template_file- Read file from templatecreate_backend- Create backend via Backend toolsconfigure_api_url- Set API URL in frontend .env
Fullstack Workflow
Build a complete application in minutes:
1. Clone Frontend Template
"Use clone_template to create a new project called 'my-app' in ~/projects"
2. Create Backend API
"Create a backend with users and posts tables"
3. Connect Frontend to Backend
"Use configure_api_url to connect my-app to the backend"
4. Run the App
cd ~/projects/my-app
npm install
npm run dev
Schema Format
⚠️ CRITICAL: Use FLAT format (no 'fields' nesting)
✅ Correct:
{
"users": {
"email": {"type": "string", "required": true, "unique": true},
"name": {"type": "string", "required": true}
},
"posts": {
"title": {"type": "string", "required": true},
"user_id": {"type": "uuid", "foreign_key": "users.id"}
}
}
❌ Wrong (will fail):
{
"users": {
"fields": {
"email": {"type": "string"}
}
}
}
Field Types
| Type | Description |
|---|---|
string |
Text (varchar) |
text |
Long text |
integer |
Whole numbers |
decimal |
Decimal numbers |
boolean |
True/false |
uuid |
Primary/foreign keys |
date |
Date only |
timestamp |
Date and time |
json |
JSON data |
Field Properties
| Property | Type | Description |
|---|---|---|
type |
string | REQUIRED - Field type |
required |
boolean | Field is required |
unique |
boolean | Unique constraint |
default |
any | Default value |
foreign_key |
string | Reference (format: table.id) |
enum |
array | Allowed values |
Environment Variables
| Variable | Description | Default |
|---|---|---|
RATIONALBLOKS_API_KEY |
Your API key | Required for STDIO |
RATIONALBLOKS_MODE |
Mode: full, backend, frontend | full |
TRANSPORT |
Transport: stdio, http | stdio |
Entry Points
Three entry points for different use cases:
# Full mode (all 23 tools)
rationalbloks-mcp
# Backend only (18 tools)
rationalbloks-mcp-backend
# Frontend only (5 tools)
rationalbloks-mcp-frontend
Example Prompts
Backend Operations
"List all my RationalBloks projects"
"Create a project called 'e-commerce' with products, orders, and customers"
"Deploy my project to staging"
"Show me the deployment history"
Frontend Operations
"Clone the frontend template to ~/projects/my-store"
"What files are in the template?"
"Connect my-store to the e-commerce backend"
Fullstack (Full Mode)
"Create a complete todo app with a React frontend and REST API"
"Build me an e-commerce store with product catalog and shopping cart"
Troubleshooting
"Command not found"
pip show rationalbloks-mcp
which rationalbloks-mcp
"API key required"
Ensure your key starts with rb_sk_
Tools not loading
- Check IDE Output panel for errors
- Reload window (Ctrl+Shift+P → "Developer: Reload Window")
- Verify settings.json syntax
Schema errors
- Use
get_template_schemasto see correct format - Ensure FLAT format (no 'fields' nesting)
- Every field needs a 'type' property
Architecture
rationalbloks-mcp/
├── core/ # Shared infrastructure
│ ├── auth.py # API key validation
│ ├── transport.py # STDIO + HTTP transport
│ └── server.py # Base MCP server
├── backend/ # 18 backend tools
│ ├── client.py # LogicBlok HTTP client
│ └── tools.py # Tool definitions
└── frontend/ # 5 frontend tools
├── client.py # Template operations
└── tools.py # Tool definitions
Support
- Email: support@rationalbloks.com
- Docs: rationalbloks.com/docs/mcp
- Issues: github.com/rationalbloks/rationalbloks-mcp/issues
License
Proprietary - Copyright 2026 RationalBloks. All Rights Reserved.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rationalbloks_mcp-0.2.1.tar.gz.
File metadata
- Download URL: rationalbloks_mcp-0.2.1.tar.gz
- Upload date:
- Size: 26.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
02c148a576fe668bccbf5e18d4e4ddc6376bf650a950b7a530fc55db99f80ee6
|
|
| MD5 |
525f32284f63020f5d3fb3c1ebea892b
|
|
| BLAKE2b-256 |
321971411e296cc1a5c8059a6012c11e08083ae3757520d5db8a4b8ee9f5f365
|
File details
Details for the file rationalbloks_mcp-0.2.1-py3-none-any.whl.
File metadata
- Download URL: rationalbloks_mcp-0.2.1-py3-none-any.whl
- Upload date:
- Size: 33.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e3468da1fd352d6060ea1f48006599569ebd4a1e4fc42847b15d73b0939a025e
|
|
| MD5 |
e7057d65ff7bece8610ee1bdc67a76a6
|
|
| BLAKE2b-256 |
b1a484519d8e95dcc04a5835cebab0d6225f41441e824bbc8a87c6bd2221d688
|