# AppDrag — how to use (mcp.ai)

Connect your AppDrag account and use 11 tools for developer tools straight from your AI agent. Connect with your own API key. AppDrag is a cloud-based platform for building websites, APIs, and databases with drag-and-drop tools, code editing, and integrated hosting to accelerate development workflows and iteration.

## Option A — via MCP (recommended)
Remote MCP endpoint (HTTP, streamable): `https://api.mcp.ai/p_appdrag?ms=1787295900000`
Add it as a custom/remote MCP connector in your client (Claude, Cursor, VS Code…), then authenticate when prompted. Once connected, ask the agent to use the server's tools (e.g. `appdrag_execute_function_delete_default`).

## Option B — via direct REST API
Base URL: `https://api.mcp.ai/api/appdrag`
Auth: `Authorization: Bearer sk_live_…` — create a workspace API key at https://mcp.ai/settings/api-keys
Discover endpoints: `GET https://api.mcp.ai/api/appdrag/_endpoints`

### Endpoints
- `POST https://api.mcp.ai/api/appdrag/execute/function/delete/default` — Tool to execute a Cloud Backend API function via DELETE on the default environment. Use when you need to call a function with DELETE parameters and optional APIKey.
  - body: { apiKey?: string, folder: string, function: string, parameters?: object }
- `POST https://api.mcp.ai/api/appdrag/execute/function/delete/preprod` — Tool to execute the pre-production version of a Cloud Backend API function via DELETE. Use when you need to test or validate delete operations in the preprod environment before production deployment.
  - body: { body?: object, apiKey?: string, folder: string, function: string }
- `POST https://api.mcp.ai/api/appdrag/execute/function/get/prod` — Tool to execute a production Cloud Backend API function via GET. Includes robust URL handling and fallbacks to accommodate management base URLs.
  - body: { apiKey?: string, folder: string, function: string, query_params?: object }
- `POST https://api.mcp.ai/api/appdrag/execute/function/patch/dev` — Tool to execute the development version of a Cloud Backend API function via PATCH. Use after deploying or updating your function to the dev environment.
  - body: { body?: object, apiKey?: string, folder: string, function: string }
- `POST https://api.mcp.ai/api/appdrag/execute/function/post/default` — Tool to execute a Cloud Backend API function via POST on the default environment. Use when you need to call a function with POST parameters and optional APIKey.
  - body: { folder: string, function: string, parameters: object }
- `POST https://api.mcp.ai/api/appdrag/execute/function/post/preprod` — Tool to execute a Cloud Backend API function via POST on the preprod environment. Use when you need to test a function in the preprod environment before releasing to production. Include apiKey if your
  - body: { apiKey?: string, folder: string, params?: object, function: string }
- `POST https://api.mcp.ai/api/appdrag/execute/function/put/default` — Tool to execute a Cloud Backend API function via PUT on the default environment. Use when you need to call a function with PUT parameters and optional APIKey.
  - body: { apiKey?: string, folder: string, function: string, parameters?: object }
- `POST https://api.mcp.ai/api/appdrag/execute/function/put/preprod` — Tool to execute a Cloud Backend API function via PUT on the preprod environment. Use when you need to call a function with PUT parameters and optional APIKey in preprod.
  - body: { apiKey?: string, folder: string, function: string, parameters?: object }
- `POST https://api.mcp.ai/api/appdrag/visual/sql/delete` — Tool to delete rows via a Visual SQL Delete function. Use when you need to delete records from a Cloud DB table using a Visual SQL Delete function.
  - body: { apiKey?: string, folder: string, params?: object, visualDeleteFunction: string }
- `POST https://api.mcp.ai/api/appdrag/visual/sql/select` — Tool to execute a Visual SELECT Cloud Backend function. Use when you need to read rows from a database table using a visual SQL function configured in AppDrag.
  - body: { apiKey?: string, folder: string, params?: object, visualSelectFunction: string }
- `POST https://api.mcp.ai/api/appdrag/visual/sql/update` — Tool to execute a Visual SQL UPDATE via an AppDrag Visual UPDATE function. Use when you need to update database rows based on your Visual UPDATE mapping.
  - body: { apiKey?: string, folder: string, parameters?: object, visualUpdateFunction: string }

## Example prompts
- "What can I do in AppDrag?"
- "Show me a summary of my AppDrag account"

## More
- Page: https://mcp.ai/appdrag
- Agent spec (llms.txt): https://mcp.ai/appdrag/llms.txt
- Postman collection: https://mcp.ai/appdrag/postman.json
