Enterprise-grade MCP Server for RationalBloks - Connect AI agents to your backend projects
Project description
RationalBloks MCP Server
Enterprise-grade Model Context Protocol (MCP) server for RationalBloks - Connect AI agents (Claude Desktop, Cursor, VS Code Copilot) to programmatically manage backend APIs through natural language.
Installation
uv 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"
}
}
}
}
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"
}
}
}
}
Location:
- Windows:
%APPDATA%\Claude\claude_desktop_config.json - macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
Available Tools
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 templatesget_subscription_status- Plan and limitsget_project_usage- Metricsget_schema_at_version- Schema at commit
Write Operations (7)
create_project- Create new projectupdate_schema- Update schemadeploy_staging- Deploy to stagingdeploy_production- Deploy to productiondelete_project- Delete projectrollback_project- Rollback versionrename_project- Rename project
Authentication
Uses OAuth2 Bearer Token (RFC 6750):
Authorization: Bearer rb_sk_your_key_here
All API keys follow format: rb_sk_ + 43 characters
Architecture
Local Mode (STDIO)
- For VS Code, Cursor, Claude Desktop
- JSON-RPC over stdin/stdout
- Fast, private, offline-capable
Cloud Mode (HTTP/SSE)
- For Smithery, web agents
- Streamable HTTP with Server-Sent Events
- Works anywhere with internet
Testing
# Test command
export RATIONALBLOKS_API_KEY=rb_sk_your_key
rationalbloks-mcp
# Test gateway
curl https://logicblok.rationalbloks.com/api/mcp/health \
-H "Authorization: Bearer rb_sk_your_key"
Troubleshooting
"Command not found"
pip show rationalbloks-mcp
which rationalbloks-mcp
"API key required"
Check format: must start with rb_sk_
Tools not loading
- Check IDE Output panel for errors
- Reload window
- Verify settings.json syntax
Support
- Email: support@rationalbloks.com
- Docs: rationalbloks.com/docs/mcp
Example Usage with Claude
Try these prompts:
"List all my RationalBloks projects"
"Create a new project called 'my-store' with customers and orders tables"
"Show me the schema for project abc123"
"Deploy my-store to staging"
"Show me the deployment history for my-store"
"Rollback my-store to the previous version"
API Key Scopes
| Scope | Permissions |
|---|---|
read |
View projects, schemas, status |
write |
Create, update, deploy, delete |
admin |
Full access (includes admin operations) |
Default scope is read,write which covers all common operations.
Rate Limiting
- Default: 60 requests per minute per API key
- Configurable per API key
- 429 responses include retry guidance
Security
- API keys start with
rb_sk_prefix - Keys are hashed in storage (only prefix visible after creation)
- Each key can be revoked independently
- Full audit logging of all operations
Schema Examples
E-Commerce Store
{
"schema": {
"customers": {
"name": { "type": "string", "required": true },
"email": { "type": "string", "format": "email", "unique": true },
"phone": { "type": "string" },
"created_at": { "type": "datetime", "default": "now" }
},
"products": {
"name": { "type": "string", "required": true },
"price": { "type": "decimal", "precision": 10, "scale": 2 },
"sku": { "type": "string", "unique": true },
"stock": { "type": "integer", "default": 0 },
"category": { "type": "string" }
},
"orders": {
"customer_id": { "type": "reference", "to": "customers" },
"total": { "type": "decimal", "precision": 10, "scale": 2 },
"status": { "type": "enum", "values": ["pending", "paid", "shipped", "delivered"] },
"created_at": { "type": "datetime", "default": "now" }
},
"order_items": {
"order_id": { "type": "reference", "to": "orders" },
"product_id": { "type": "reference", "to": "products" },
"quantity": { "type": "integer", "required": true },
"unit_price": { "type": "decimal", "precision": 10, "scale": 2 }
}
}
}
Team Collaboration
{
"schema": {
"users": {
"name": { "type": "string", "required": true },
"email": { "type": "string", "format": "email", "unique": true },
"role": { "type": "enum", "values": ["admin", "member", "viewer"] }
},
"teams": {
"name": { "type": "string", "required": true },
"description": { "type": "text" }
},
"tasks": {
"title": { "type": "string", "required": true },
"description": { "type": "text" },
"team_id": { "type": "reference", "to": "teams" },
"assigned_to": { "type": "reference", "to": "users" },
"status": { "type": "enum", "values": ["todo", "in_progress", "done"] },
"due_date": { "type": "date" }
}
}
}
Deployment Workflow
- Create Project → Generates staging environment
- Update Schema → Modify your data model
- Deploy Staging → Test your changes
- Deploy Production → Promote when ready
- Rollback → Revert if needed
┌──────────────┐ ┌──────────────┐ ┌──────────────┐
│ Development │ → │ Staging │ → │ Production │
│ (Schema) │ │ (Test) │ │ (Live) │
└──────────────┘ └──────────────┘ └──────────────┘
↑
│
┌───────┴───────┐
│ Rollback │
└───────────────┘
HTTP Transport (Remote)
Connect to the hosted MCP server at https://mcp.rationalbloks.com:
{
"mcpServers": {
"rationalbloks-remote": {
"transport": "sse",
"url": "https://mcp.rationalbloks.com/sse",
"headers": {
"Authorization": "Bearer rb_sk_your_key_here"
}
}
}
}
Smithery Installation
Install via Smithery CLI for one-click setup:
npx @smithery/cli install @rationalbloks/mcp
What is RationalBloks?
RationalBloks is a Backend-as-a-Service platform that generates complete backend APIs from JSON schemas. When you connect via MCP:
- AI agents can create and manage your backends
- No coding required - just describe your data model
- Automatic APIs - REST endpoints generated instantly
- Database included - PostgreSQL managed for you
- Staging + Production - Full deployment pipeline
License
Copyright © 2026 RationalBloks. All Rights Reserved.
This is proprietary software. See LICENSE for details.
Links
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.1.11.tar.gz.
File metadata
- Download URL: rationalbloks_mcp-0.1.11.tar.gz
- Upload date:
- Size: 16.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 |
94d93866bad81a1e8cc4fee63f100f9be1024e446ae5f0745ff8f61b0949b4a3
|
|
| MD5 |
726c19cd44b86b21e6e2439fd7fd2b19
|
|
| BLAKE2b-256 |
a53c20de1eaaca3d5cf5db191673c825d094158eedeb454ef4ad155991cd2934
|
File details
Details for the file rationalbloks_mcp-0.1.11-py3-none-any.whl.
File metadata
- Download URL: rationalbloks_mcp-0.1.11-py3-none-any.whl
- Upload date:
- Size: 18.6 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 |
2f6d3da81e1fd73285b2c26214f7bdb87fe8b1284642580c0a3c319776fd4c0e
|
|
| MD5 |
2d2c975e46f94ca603f61678cbb9ea9a
|
|
| BLAKE2b-256 |
612a4031ff04255fd1400f248155211192cf150a47d8fc7c70c354b72e407415
|