# RationalBloks MCP server

Deploy production REST APIs from JSON schemas in seconds. Manage projects, schemas, and deployments.

## Links
- Registry page: https://www.getdrio.com/mcp/io-github-rationalbloks-rationalbloks-mcp
- Repository: https://github.com/rationalbloks/rationalbloks-mcp

## Install
- Command: `uvx rationalbloks-mcp`
- Endpoint: https://mcp.rationalbloks.com/mcp
- Auth: Auth required by registry metadata

## Setup notes
- Package: Pypi rationalbloks-mcp v0.6.1
- Environment variable: RATIONALBLOKS_API_KEY (required; secret)
- The upstream registry signals required auth or secrets.
- Remote endpoint: https://mcp.rationalbloks.com/mcp

## Tools
- list_projects (List Projects) - List all your RationalBloks projects with their status and URLs Endpoint: https://mcp.rationalbloks.com/mcp
- get_project (Get Project Details) - Get detailed information about a specific project Endpoint: https://mcp.rationalbloks.com/mcp
- get_schema (Get Project Schema) - Get the JSON schema definition of a project in FLAT format. Returns the schema structure where each table name maps directly to field definitions. This is the same format required for create_project and update_schema. USE CASES: Review current schema before making updates, copy schema as template for new projects, verify schema structure after deployment, learn the correct schema format by example. The returned schema will be in FLAT format: {table_name: {field_name: {type, properties}}} Endpoint: https://mcp.rationalbloks.com/mcp
- get_user_info (Get User Info) - Get information about the authenticated user Endpoint: https://mcp.rationalbloks.com/mcp
- get_job_status (Get Job Status) - Check the status of a deployment job. STATUS VALUES: pending (job queued), running (deployment in progress), completed (success), failed (deployment failed). TIMELINE: Typical deployment takes 2-5 minutes. If status is 'running' for >10 minutes, check get_project_info for detailed pod status. If status is 'failed', use get_project_info to see deployment errors and check schema format (must be FLAT, no 'fields' nesting). Endpoint: https://mcp.rationalbloks.com/mcp
- get_project_info (Get Project Info) - Get detailed project info including deployment status and resource usage. DEPLOYMENT STATUS: Running (healthy), Pending (starting), CrashLoopBackOff (init container failed - usually schema format error), ImagePullBackOff (image build failed). TROUBLESHOOTING: If status is CrashLoopBackOff, the schema is likely in wrong format (nested 'fields' key or missing 'type' properties). Use get_schema to review current schema. If replicas show 0/2, the init container (migration runner) is failing. This is almost always a schema format issue. Endpoint: https://mcp.rationalbloks.com/mcp
- get_version_history (Get Version History) - Get the deployment and version history (git commits) for a project. Shows all schema changes with commit SHA, timestamp, and message. USE CASES: Review what changed between deployments, find the last working version before issues started, get commit SHA for rollback_project. Endpoint: https://mcp.rationalbloks.com/mcp
- get_template_schemas (Get Template Schemas) - Get pre-built template schemas for common use cases. ⭐ USE THIS FIRST when creating a new project! Templates show the CORRECT schema format with: proper FLAT structure (no 'fields' nesting), every field has a 'type' property, foreign key relationships configured correctly, best practices for field naming and types. Available templates: E-commerce (products, orders, customers), Team collaboration (projects, tasks, users), General purpose templates. You can use these templates directly with create_project or modify them for your needs. TIP: Study these templates to understand the correct schema format before creating custom schemas. Endpoint: https://mcp.rationalbloks.com/mcp
- get_subscription_status (Get Subscription Status) - Get your subscription tier, limits, and usage Endpoint: https://mcp.rationalbloks.com/mcp
- get_project_usage (Get Project Usage) - Get resource usage metrics (CPU, memory) for a project Endpoint: https://mcp.rationalbloks.com/mcp
- get_schema_at_version (Get Schema at Version) - Get the schema as it was at a specific version/commit Endpoint: https://mcp.rationalbloks.com/mcp
- create_project (Create Project) - Create a new RationalBloks project from a JSON schema.

⚠️ CRITICAL RULES - READ BEFORE CREATING SCHEMA:

1. FLAT FORMAT (REQUIRED):
   ✅ CORRECT: {users: {email: {type: "string", max_length: 255}}}
   ❌ WRONG: {users: {fields: {email: {type: "string"}}}}
   DO NOT nest under 'fields' key!

2. FIELD TYPE REQUIREMENTS:
   • string: MUST have "max_length" (e.g., max_length: 255)
   • decimal: MUST have "precision" and "scale" (e.g., precision: 10, scale: 2)
   • datetime: Use "datetime" NOT "timestamp"
   • ALL fields: MUST have "type" property

3. AUTOMATIC FIELDS (DON'T define):
   • id (uuid, primary key)
   • created_at (datetime)
   • updated_at (datetime)

4. USER AUTHENTICATION:
   ❌ NEVER create "users", "customers", "employees" tables with email/password
   ✅ USE built-in app_users table
   
   Example:
   {
     "employee_profiles": {
       "user_id": {type: "uuid", foreign_key: "app_users.id", required: true},
       "department": {type: "string", max_length: 100}
     }
   }

5. AUTHORIZATION:
   Add user_id → app_users.id to enable "only see your own data"
   
   Example:
   {
     "orders": {
       "user_id": {type: "uuid", foreign_key: "app_users.id"},
       "total": {type: "decimal", precision: 10, scale: 2}
     }
   }

6. FIELD OPTIONS:
   • required: true/false
   • unique: true/false
   • default: any value
   • enum: ["val1", "val2"]
   • foreign_key: "table.id"

AVAILABLE TYPES: string, text, integer, decimal, boolean, uuid, date, datetime, json, uuid_array, integer_array, text_array, float_array

   Array types store PostgreSQL native arrays with automatic GIN indexing:
   • uuid_array: UUID[] — for sets of references (e.g., tensor coordinates)
   • integer_array: BIGINT[] — for dimension indices, integer sets
   • text_array: TEXT[] — for tags, categories, label sets
   • float_array: DOUBLE PRECISION[] — for weight vectors, scores
   GIN-indexed operators: @> (contains), <@ (contained_by), && (overlaps)

BACKEND ENGINE:
• python (default): FastAPI backend — mature, full-featured
• rust: Axum backend — faster cold starts, lower memory, high performance

WORKFLOW:
1. Use get_template_schemas FIRST to see valid examples
2. Create schema following ALL rules above
3. Call this tool (optionally choose backend_type: "python" or "rust")
4. Monitor with get_job_status (2-5 min deployment)

After creation, use get_job_status with returned job_id to monitor deployment. Endpoint: https://mcp.rationalbloks.com/mcp
- update_schema (Update Schema) - Update a project's schema (saves to database, does NOT deploy).

⚠️ CRITICAL: Follow ALL rules from create_project:
• FLAT format (no 'fields' nesting)
• string: MUST have max_length
• decimal: MUST have precision + scale
• Use "datetime" NOT "timestamp"
• DON'T define: id, created_at, updated_at
• NEVER create users/customers/employees tables (use app_users)

⚠️ MIGRATION RULES:
• New fields MUST be "required": false OR have "default" value
• Cannot add required field without default to existing tables
• Safe: {new_field: {type: "string", max_length: 100, required: false}}

WORKFLOW:
1. Use get_schema to see current schema
2. Modify following ALL rules
3. Call update_schema (saves only)
4. Call deploy_staging to apply changes
5. Monitor with get_job_status

NOTE: This only saves the schema. You MUST call deploy_staging afterwards to apply changes. Endpoint: https://mcp.rationalbloks.com/mcp
- deploy_staging (Deploy to Staging) - Deploy a project to the staging environment. This triggers: (1) Schema validation, (2) Docker image build, (3) GitHub commit, (4) Kubernetes deployment, (5) Database migrations. The operation is ASYNCHRONOUS - it returns immediately with a job_id. Use get_job_status with the job_id to monitor progress. Deployment typically takes 2-5 minutes depending on schema complexity. If deployment fails, check: (1) Schema format is FLAT (no 'fields' nesting), (2) Every field has a 'type' property, (3) Foreign keys reference existing tables, (4) No PostgreSQL reserved words in table/field names. Use get_project_info to see if the deployment succeeded. Endpoint: https://mcp.rationalbloks.com/mcp
- deploy_production (Deploy to Production) - Promote staging to production (requires paid plan) Endpoint: https://mcp.rationalbloks.com/mcp
- delete_project (Delete Project) - Delete a project (removes GitHub repo, K8s deployments, and database) Endpoint: https://mcp.rationalbloks.com/mcp
- rollback_project (Rollback Project) - Rollback a project to a previous version. ⚠️ WARNING: This reverts schema AND code to the specified commit. Database data is NOT rolled back. Use get_version_history to find the commit SHA of the version you want to rollback to. After rollback, use get_job_status to monitor the redeployment. Rollback is useful when a schema change breaks deployment. Endpoint: https://mcp.rationalbloks.com/mcp
- rename_project (Rename Project) - Rename a project (changes display name, not project_code) Endpoint: https://mcp.rationalbloks.com/mcp
- get_graph_schema (Get Graph Schema) - Get the graph schema definition of a project. Returns the hierarchical schema with nodes (entities) and relationships. Graph schemas define entity hierarchies and typed relationships — a different format than relational flat-table schemas. Endpoint: https://mcp.rationalbloks.com/mcp
- get_graph_template_schemas (Get Graph Template Schemas) - Get pre-built graph template schemas for common use cases. ⭐ USE THIS FIRST when creating a new graph project! Templates show the CORRECT graph schema format with: proper node definitions (description, flat_labels, schema with flat field definitions), relationship configurations (from, to, cardinality, data_schema), and hierarchical entity nesting. Available templates: Social Network (users, posts, follows), Knowledge Graph (topics, articles, authors), Product Catalog (products, categories, suppliers). You can use these templates directly with create_graph_project or modify them for your needs. TIP: Study these templates to understand the correct graph schema format before creating custom schemas. Endpoint: https://mcp.rationalbloks.com/mcp
- get_graph_version_history (Get Graph Version History) - Get the deployment and version history for a graph project. Shows all schema changes with commit SHAs, timestamps, version numbers, and messages. Use this to find a specific version for rollback operations. Endpoint: https://mcp.rationalbloks.com/mcp
- get_graph_schema_at_version (Get Graph Schema at Version) - Get the graph schema as it existed at a specific version/commit. Use get_graph_version_history to find commit SHAs. Useful for comparing schemas across versions or auditing changes. Endpoint: https://mcp.rationalbloks.com/mcp
- get_graph_project_info (Get Graph Project Info) - Get detailed graph project information including Kubernetes deployment status, Neo4j database health, pod status, and resource usage. Use this after deployment to verify the graph project is running correctly. Endpoint: https://mcp.rationalbloks.com/mcp
- create_graph_project (Create Graph Project) - Create a new Neo4j graph database project from a hierarchical JSON schema.

⚠️ GRAPH SCHEMA FORMAT — READ BEFORE CREATING:

Graph schemas define nodes (entities) and relationships, NOT flat database tables.
Each field is a dict with "type" and optional "required": true (defaults to false).

SCHEMA STRUCTURE:
{
  "nodes": {
    "EntityName": {
      "description": "What this entity represents",
      "flat_labels": ["AdditionalLabel"],
      "schema": {
        "field_name": {"type": "string", "required": true},
        "other_field": {"type": "integer"}
      }
    }
  },
  "relationships": {
    "RELATIONSHIP_TYPE": {
      "from": "EntityName",
      "to": "OtherEntity",
      "cardinality": "MANY_TO_MANY",
      "data_schema": {
        "field_name": {"type": "date"}
      }
    }
  }
}

FIELD TYPES: string, integer, float, boolean, date, json

CARDINALITY OPTIONS: ONE_TO_ONE, ONE_TO_MANY, MANY_TO_ONE, MANY_TO_MANY

HIERARCHICAL NODES:
Nest entities inside parent entities to create type hierarchies.
Child entities inherit parent labels automatically.

Example:
{
  "nodes": {
    "Animal": {
      "description": "Base animal entity",
      "flat_labels": ["LivingThing"],
      "schema": {
        "name": {"type": "string", "required": true},
        "habitat": {"type": "string"}
      },
      "Dog": {
        "description": "A dog (inherits Animal labels)",
        "flat_labels": ["Pet"],
        "schema": {
          "breed": {"type": "string", "required": true},
          "trained": {"type": "boolean"}
        }
      }
    }
  },
  "relationships": {
    "OWNS": {
      "from": "Person",
      "to": "Animal",
      "cardinality": "ONE_TO_MANY"
    }
  }
}

RULES:
1. "nodes" key is REQUIRED — must contain at least one entity
2. Each entity needs "description" and "schema" with field definitions
3. Each field is {"type": "...", "required": true/false} — required defaults to false
4. Relationship "from"/"to" must reference defined node names
5. Relationship types should be UPPER_SNAKE_CASE
6. Entity names should be PascalCase
7. Automatic fields (id, created_at, updated_at) are NOT needed
8. Use get_graph_template_schemas FIRST to see valid examples

WORKFLOW:
1. Use get_graph_template_schemas to see valid examples
2. Create schema following the rules above
3. Call this tool
4. Monitor with get_job_status (2-5 min deployment)

After creation, use get_job_status with returned job_id to monitor deployment. Endpoint: https://mcp.rationalbloks.com/mcp
- update_graph_schema (Update Graph Schema) - Update a graph project's schema (saves to database, does NOT deploy).

⚠️ Follow ALL rules from create_graph_project:
• Must have "nodes" key with at least one entity
• Each entity needs "description" and "schema" with field definitions
• Each field is {"type": "...", "required": true/false} — required defaults to false
• Relationships need "from", "to", and "cardinality"
• Field types: string, integer, float, boolean, date, json
• Relationship types should be UPPER_SNAKE_CASE
• Entity names should be PascalCase

WORKFLOW:
1. Use get_graph_schema to see current schema
2. Modify following all rules
3. Call update_graph_schema (saves only)
4. Call deploy_graph_staging to apply changes
5. Monitor with get_job_status

NOTE: This only saves the schema. You MUST call deploy_graph_staging afterwards to deploy. Endpoint: https://mcp.rationalbloks.com/mcp
- deploy_graph_staging (Deploy Graph to Staging) - Deploy a graph project to the staging environment. This triggers: (1) Schema validation, (2) Neo4j entity code generation, (3) Docker image build, (4) GitHub commit, (5) Kubernetes deployment with Neo4j instance. The operation is ASYNCHRONOUS — returns immediately with a job_id. Use get_job_status to monitor progress. Deployment typically takes 2-5 minutes. Use get_graph_project_info to verify deployment succeeded. Endpoint: https://mcp.rationalbloks.com/mcp
- deploy_graph_production (Deploy Graph to Production) - Promote graph staging to production. Creates a separate production Neo4j instance with its own credentials and database. Requires paid plan. Endpoint: https://mcp.rationalbloks.com/mcp
- delete_graph_project (Delete Graph Project) - Delete a graph project (removes GitHub repo, K8s deployments, Neo4j database, and credentials) Endpoint: https://mcp.rationalbloks.com/mcp
- rollback_graph_project (Rollback Graph Project) - Rollback a graph project to a previous version. ⚠️ WARNING: This reverts schema AND code to the specified commit. Neo4j data is NOT rolled back. Use get_graph_version_history to find the commit SHA of the version you want to rollback to. After rollback, the graph API will be redeployed with the old schema. Endpoint: https://mcp.rationalbloks.com/mcp
- create_graph_node (Create Graph Node) - Create a single node in a deployed graph project.

REQUIRES: Project must be deployed (use deploy_graph_staging first).

The entity_type must match an entity key from the project schema.
Use get_graph_data_schema to see available entity types and their fields.

Example:
  entity_type: "person"
  entity_id: "alan-turing-001"
  data: {"name": "Alan Turing", "birth_year": 1912, "field": "Computer Science"}

The entity_id is your unique identifier — use meaningful IDs for knowledge graphs. Endpoint: https://mcp.rationalbloks.com/mcp
- get_graph_node (Get Graph Node) - Get a specific node by its entity_id from a deployed graph project. Returns all node properties including created_at and updated_at timestamps. Endpoint: https://mcp.rationalbloks.com/mcp
- list_graph_nodes (List Graph Nodes) - List nodes of a specific entity type from a deployed graph project. Supports pagination with limit/offset. Returns nodes ordered by creation date (newest first). Endpoint: https://mcp.rationalbloks.com/mcp
- update_graph_node (Update Graph Node) - Update properties of an existing node in a deployed graph project. Only send the fields you want to change — unspecified fields remain unchanged. Endpoint: https://mcp.rationalbloks.com/mcp
- delete_graph_node (Delete Graph Node) - Delete a node and all its relationships from a deployed graph project. ⚠️ This also removes all relationships connected to this node (DETACH DELETE). Endpoint: https://mcp.rationalbloks.com/mcp
- create_graph_relationship (Create Graph Relationship) - Create a relationship between two nodes in a deployed graph project.

The rel_type must match a relationship key from the project schema.
Use get_graph_data_schema to see available relationship types.

Example:
  rel_type: "authored"
  from_id: "alan-turing-001"
  to_id: "on-computable-numbers-001"
  data: {"year": 1936}

The from_id and to_id must be entity_ids of existing nodes. Endpoint: https://mcp.rationalbloks.com/mcp
- get_node_relationships (Get Node Relationships) - Get all relationships connected to a specific node. Supports direction filtering (incoming, outgoing, both) and relationship type filtering. Endpoint: https://mcp.rationalbloks.com/mcp
- delete_graph_relationship (Delete Graph Relationship) - Delete a specific relationship by its internal ID. Use get_node_relationships to find relationship IDs. Endpoint: https://mcp.rationalbloks.com/mcp
- bulk_create_graph_nodes (Bulk Create Graph Nodes) - Create multiple nodes at once (up to 500 per call). Uses Neo4j UNWIND for high performance.

Essential for knowledge graph population — create hundreds of entities from a single book chapter or article.

Each node needs: entity_id (unique string) and data (properties dict).

Example:
  entity_type: "concept"
  nodes: [
    {"entity_id": "quantum-mechanics-001", "data": {"name": "Quantum Mechanics", "field": "Physics"}},
    {"entity_id": "wave-function-001", "data": {"name": "Wave Function", "field": "Physics"}},
    {"entity_id": "superposition-001", "data": {"name": "Superposition", "field": "Physics"}}
  ] Endpoint: https://mcp.rationalbloks.com/mcp
- bulk_create_graph_relationships (Bulk Create Graph Relationships) - Create multiple relationships at once (up to 500 per call). Uses Neo4j UNWIND for high performance.

Essential for connecting knowledge — link hundreds of concepts, people, and events in one operation.

Each relationship needs: from_id, to_id, and optional data (properties).

Example:
  rel_type: "related_to"
  relationships: [
    {"from_id": "quantum-mechanics-001", "to_id": "wave-function-001", "data": {"strength": "strong"}},
    {"from_id": "quantum-mechanics-001", "to_id": "superposition-001", "data": {"strength": "strong"}}
  ] Endpoint: https://mcp.rationalbloks.com/mcp
- search_graph_nodes (Search Graph Nodes) - Search for nodes by property values in a deployed graph project.

Supports exact match and contains search (prefix value with ~ for contains).

Examples:
  Exact: filters: {"name": "Alan Turing"}
  Contains: filters: {"name": "~turing"} (case-insensitive)
  Combined: entity_type: "person", filters: {"field": "~physics"}

Without entity_type, searches ALL node types. Endpoint: https://mcp.rationalbloks.com/mcp
- fulltext_search_graph (Full-Text Search Graph) - Search across ALL string properties of ALL nodes in a deployed graph using free-text queries.

Unlike search_graph_nodes (which filters by specific property), this searches every text field at once.
Perfect for finding knowledge when you don't know which property contains the answer.

Example: query "quantum" searches name, description, summary, notes, and all other string fields.
Returns nodes with _match_fields showing which properties matched.

Optionally filter by entity_type to narrow results. Endpoint: https://mcp.rationalbloks.com/mcp
- traverse_graph (Traverse Graph) - Walk the graph from a starting node, discovering connected knowledge.

Returns all nodes reachable within max_depth hops, with their distance from the start.
Essential for exploring knowledge graphs — find related concepts, trace connections, discover clusters.

Example: Start from "Alan Turing", traverse outgoing relationships up to 3 hops deep:
  start_entity_type: "person"
  start_entity_id: "alan-turing-001"
  max_depth: 3
  direction: "outgoing"

Supports filtering by relationship types and direction. Endpoint: https://mcp.rationalbloks.com/mcp
- get_graph_statistics (Get Graph Statistics) - Get statistics about a deployed graph: total node count, total relationship count, counts per entity type, counts per relationship type. Essential for understanding the current state of a knowledge graph before adding more data. Endpoint: https://mcp.rationalbloks.com/mcp
- get_graph_data_schema (Get Graph Data Schema) - Get the runtime schema of a DEPLOYED graph project — shows the actual entity types and relationship types available for data operations.

Returns: Available entity keys (for create_graph_node, list_graph_nodes, etc.) and relationship keys (for create_graph_relationship, etc.).

⭐ USE THIS FIRST before creating nodes/relationships to know what entity_type and rel_type values are valid. Endpoint: https://mcp.rationalbloks.com/mcp

## Resources
- rationalbloks://docs/getting-started - Documentation: Getting Started MIME type: text/markdown
- rationalbloks://docs/schema-reference - Documentation: Schema Reference MIME type: text/markdown
- rationalbloks://docs/api-reference - Documentation: Api Reference MIME type: text/markdown

## Prompts
- create-project-from-description - Create Project from Description Generate a complete RationalBloks project schema from a plain English description Arguments: description
- fix-schema-errors - Fix Schema Errors Analyze and fix common schema format errors Arguments: schema, error_message
- create-graph-project-from-description - Create Graph Project from Description Generate a complete RationalBloks graph project schema from a plain English description Arguments: description

## Metadata
- Owner: io.github.rationalbloks
- Version: 0.6.1
- Runtime: Pypi
- Transports: STDIO, HTTP
- License: Not captured
- Language: Not captured
- Stars: Not captured
- Updated: Feb 7, 2026
- Source: https://registry.modelcontextprotocol.io
