{
  "info": {
    "name": "Xata — mcp.ai",
    "description": "REST API for the Xata MCP. Set {{apiKey}} to a workspace key (sk_live_…) created at https://mcp.ai/settings/api-keys.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{apiKey}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://api.mcp.ai/api/xata",
      "type": "string"
    },
    {
      "key": "apiKey",
      "value": "sk_live_...",
      "type": "string"
    }
  ],
  "item": [
    {
      "name": "xata_get_organization",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/get/organization",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "get",
            "organization"
          ]
        },
        "description": "Tool to retrieve detailed information about a specific organization by its ID. Use when you need to check organization status, name, billing information, or admin settings.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"organization_id\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "xata_get_project_limits",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/get/project/limits",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "get",
            "project",
            "limits"
          ]
        },
        "description": "Tool to retrieve the default resource limits for projects in a specified organization. Use when you need to check maximum instances, storage, allowed regions, or branch limits for a Xata organization.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"organizationID\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "xata_list_extensions",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/list/extensions",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "list",
            "extensions"
          ]
        },
        "description": "Tool to get available PostgreSQL extensions for a specific image. Use when you need to check which extensions can be enabled for a particular PostgreSQL version in an organization.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"image\": \"\",\n  \"region\": \"\",\n  \"organization_id\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "xata_list_images",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/list/images",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "list",
            "images"
          ]
        },
        "description": "Tool to retrieve a list of all available postgres images for a specified organization and region. Use when you need to check which database images are available for deployment.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"region\": \"\",\n  \"organizationID\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "xata_list_instance_types",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/list/instance/types",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "list",
            "instance",
            "types"
          ]
        },
        "description": "Tool to retrieve a list of all instance types for the specified organization and region. Use when you need to check available instance types and their configurations including CPU, RAM, and pricing.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"region\": \"\",\n  \"organizationID\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "xata_list_org_api_keys",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/list/org/api/keys",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "list",
            "org",
            "api",
            "keys"
          ]
        },
        "description": "Tool to retrieve a list of API keys for a specific Xata organization. Use when you need to view all API keys associated with an organization.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"organization_id\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "xata_list_regions",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/list/regions",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "list",
            "regions"
          ]
        },
        "description": "Tool to retrieve a list of all regions where new branches can be deployed for the specified organization. Use when you need to check which regions are available for deploying new branches.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"organization_id\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "xata_update_organization",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/update/organization",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "update",
            "organization"
          ]
        },
        "description": "Tool to update information for an existing organization, such as its name. Use when you need to modify organization details.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"organizationID\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    }
  ]
}