# Cursor — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Search and discover AI cursor rules, MCP servers, and job listings organized by category to enhance your development workflow. Browse detailed information about each rule and server to find the tools and configurations that best fit your needs.

**Category:** Developer Tools | **Website:** [cursor.directory/](https://cursor.directory/) | **Docs:** [parse.bot/marketplace/daa4bbaf-b5db-46d3-9254-df1a4ec61ded/cursor-directory-api](https://parse.bot/marketplace/daa4bbaf-b5db-46d3-9254-df1a4ec61ded/cursor-directory-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-cursor-directory-api-daa4bbaf/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_rule_detail

Returns the detail page for a specific plugin by slug, including the full rule content text extracted from the first code block on the page, plus title, description, and tags.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `slug` | string | Yes | Plugin slug identifier (e.g., 'nextjs', 'front-end', 'web-scraping'). Obtainable from list_rules or list_rules_by_category results. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-cursor-directory-api-daa4bbaf/get_rule_detail \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"slug":"<string>"}'
```

### list_categories

Returns all available plugin categories aggregated from plugin keywords across the directory, sorted by count descending.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-cursor-directory-api-daa4bbaf/list_categories \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### list_jobs

Returns all job/career listings from the cursor.directory careers page, including job title, team, job type, location, and direct link to the posting.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-cursor-directory-api-daa4bbaf/list_jobs \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### list_mcps

Returns MCP (Model Context Protocol) servers from the plugins directory, filtered to type 'mcp' or 'both'. Supports search and pagination.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `limit` | integer | No | Maximum number of results to return. |
| `offset` | integer | No | Offset for pagination. |
| `query` | string | No | Search query to filter MCPs by name or description. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-cursor-directory-api-daa4bbaf/list_mcps \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"limit":"<integer>","offset":"<integer>","query":"<string>"}'
```

### list_rules

Returns all plugins from cursor.directory/plugins. Supports client-side filtering by search query and pagination via offset/limit. The full plugin list is fetched server-side and filtered/sliced locally.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `limit` | integer | No | Maximum number of results to return. |
| `offset` | integer | No | Offset for pagination (number of plugins to skip). |
| `query` | string | No | Search query to filter plugins by name or description text (case-insensitive match). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-cursor-directory-api-daa4bbaf/list_rules \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"limit":"<integer>","offset":"<integer>","query":"<string>"}'
```

### list_rules_by_category

Returns plugins filtered by a category keyword. Matches case-insensitively against plugin name and description text. Fetches the full plugin list and filters client-side.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category` | string | Yes | Category keyword to filter by (e.g., 'python', 'typescript', 'react', 'nextjs'). Matched case-insensitively against plugin name and description. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-cursor-directory-api-daa4bbaf/list_rules_by_category \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"category":"<string>"}'
```
