# 0CodeKit — how to use (mcp.ai)

Connect your 0CodeKit account and use 8 tools for developer tools straight from your AI agent. Connect with your own API key. 0CodeKit provides utility APIs for AI, document and image processing, data conversion, validation, generation, storage, and automation workflows.

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

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

### Endpoints
- `POST https://api.mcp.ai/api/0codekit/calculate/bmi` — Calculate body mass index and the provider's related desirable-weight, daily-energy, and nutrient estimates from weight in kilograms and height in centimeters. Each call consumes a 0CodeKit billing cr
  - body: { height: number, weight: number }
- `POST https://api.mcp.ai/api/0codekit/check/weekend` — Determine whether a date is a weekend and return its weekday name and day number. The verified contract accepts a date in YYYY-MM-DD format. Each call consumes a 0CodeKit billing credit.
  - body: { date: string }
- `POST https://api.mcp.ai/api/0codekit/convert/nation/iso` — Convert either an English country name to its ISO code or an ISO code to its English country name. Provide exactly one input. Each call consumes a 0CodeKit billing credit.
  - body: { iso?: string, nation?: string }
- `POST https://api.mcp.ai/api/0codekit/find/keywords` — Search text for one or more keywords and report whether each occurs and the zero-based positions of matches. Supports case-sensitive matching and complete-word-only matching. Each call consumes a 0Cod
  - body: { text: string, keywords: string[], case_sensitive?: boolean, only_complete_words?: boolean }
- `POST https://api.mcp.ai/api/0codekit/get/remaining/credits` — Return the number of 0CodeKit credits remaining for the connected API key. Use this before credit-metered work to check available quota; credits are billing quota, not an HTTP rate limit.
- `POST https://api.mcp.ai/api/0codekit/hash/message` — Generate a cryptographic digest or HMAC for a text message using a supported algorithm. Supply secret_key only for an HMAC algorithm; this tool hashes data and does not encrypt it. Each call consumes 
  - body: { message: string, hash_type: string, secret_key?: string }
- `POST https://api.mcp.ai/api/0codekit/parse/utm/parameters` — Extract standard UTM campaign parameters from a URL. Only parameters present in the URL are returned. Each call consumes a 0CodeKit billing credit.
  - body: { url: string }
- `POST https://api.mcp.ai/api/0codekit/validate/email` — Check an email address using 0CodeKit and return whether it is valid plus the provider's corrected-address value. Invalid addresses are normal successful results with valid=false. Each call consumes a
  - body: { email: string }

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

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