# Knack — how to use (mcp.ai)

Connect your Knack account and use 10 tools for databases straight from your AI agent. Connect with your own API key. No-code database and business application platform for building custom web apps without coding.

## Option A — via MCP (recommended)
Remote MCP endpoint (HTTP, streamable): `https://api.mcp.ai/p_knack?ms=1787295840000`
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. `knack_create_object_record`).

## Option B — via direct REST API
Base URL: `https://api.mcp.ai/api/knack`
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/knack/_endpoints`

### Endpoints
- `POST https://api.mcp.ai/api/knack/create/object/record` — Tool to create a new record in a specific Knack object. Use when you need to add new data to a Knack database object. Requires object-based API key authentication.
  - body: { fields: object, object_key: string }
- `POST https://api.mcp.ai/api/knack/create/view/record` — Tool to create a new record through a form view in Knack. Use when you need to add a record to a Knack object using a form view interface. Only fields that exist in the form will be used, and any reco
  - body: { view_key: string, scene_key: string, record_data: object, authorization?: string }
- `POST https://api.mcp.ai/api/knack/delete/object/record` — Tool to delete a single record from a specific Knack object by its ID. Use when you need to permanently remove a record from an object. This action is permanent and cannot be undone. Requires API key 
  - body: { record_id: string, object_key: string }
- `POST https://api.mcp.ai/api/knack/delete/view/record` — Tool to delete a record through a view that contains a delete link. Works with tables, lists, searches, calendars, and details views. This operation is permanent and cannot be undone. Use only after c
  - body: { view_key: string, record_id: string, scene_key: string }
- `POST https://api.mcp.ai/api/knack/get/object/record` — Tool to retrieve a single record by its ID from a specific Knack object. Returns the complete record with all field values in both formatted and raw formats. Use this for object-based access which req
  - body: { record_id: string, object_key: string }
- `POST https://api.mcp.ai/api/knack/list/object/records` — Tool to retrieve multiple records from a specific Knack object (table). Returns up to 1000 records per page with pagination support. Use this for object-based access which requires API key authenticat
  - body: { page?: integer, filters?: string, object_key: string, sort_field?: string, sort_order?: string, rows_per_page?: integer }
- `POST https://api.mcp.ai/api/knack/list/view/records` — Tool to retrieve multiple records from a specific Knack view (tables, lists, searches, calendars). Use when you need to fetch data from a view with pagination support. Returns only fields included in 
  - body: { page?: integer, view_key: string, scene_key: string, rows_per_page?: integer }
- `POST https://api.mcp.ai/api/knack/update/object/record` — Tool to update an existing record in a specific Knack object. Use when you need to modify field values in an existing record. Only fields provided in the request will be updated; all other fields rema
  - body: { fields: object, record_id: string, object_key: string }
- `POST https://api.mcp.ai/api/knack/upload/file` — Tool to upload a file to a Knack application. This is step 1 of a two-step process - after uploading, use the returned file ID when creating or updating a record with a file field.
  - body: { files: object, application_id: string }
- `POST https://api.mcp.ai/api/knack/upload/image` — Tool to upload an image to a Knack application. This is the first step in a two-step process - after uploading, use the returned file ID when creating or updating a record with an image field. Use whe
  - body: { files: object, application_id: string }

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

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