neon-api-endpoints

neon-api-endpoints is a cursor rule for Cursor from neondatabase/ai-rules. It costs 14 tokens per session (5,880 once invoked), scanned A, original, MIT.

A set of rules for managing Neon compute endpoints. A compute endpoint is the running service that lets an application connect to and use a Neon database branch.

In plain words
What is it for?
Creating and configuring read-write or read-only endpoints, assigning them to branches, and setting their region and scaling limits.
Why use it?
It describes how to create endpoints correctly and choose whether they can write data or only read it.

Cursor rule for Cursor ✓ vendor

Written for Cursor: a Cursor rule (.mdc).

Good fit Creating and configuring read-write or read-only endpoints, assigning them to branches, and setting their region and scaling limits.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/neondatabase/ai-rules/neon-api-endpoints
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/neondatabase/ai-rules

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for neon-api-endpoints

README.md
[![agentmods](https://agentmods.dev/badge/rules/neondatabase/ai-rules/neon-api-endpoints/github.svg)](https://agentmods.dev/rules/neondatabase/ai-rules/neon-api-endpoints)
Your own site
<a href="https://agentmods.dev/rules/neondatabase/ai-rules/neon-api-endpoints"><img src="https://agentmods.dev/badge/rules/neondatabase/ai-rules/neon-api-endpoints/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for neon-api-endpoints

Your own site · 80×15
<a href="https://agentmods.dev/rules/neondatabase/ai-rules/neon-api-endpoints"><img src="https://agentmods.dev/badge/rules/neondatabase/ai-rules/neon-api-endpoints.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 5,880 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00014 $0.05880
Opus 5.5 $0.00006 $0.02352
Sonnet 5.5 $0.00003 $0.01176
Haiku 4.5 $0.00001 $0.00588

Measured 3mo ago against content hash 46f36fd10ed7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

neon-api-endpoints scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl 'https://console.neon.tech/api/v2/projects/hidden-river-50598307/endpoints' \
neon-api-endpoints.mdc · 562 lines

How it starts

The opening of the file, as written. The whole thing — 562 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Overview

This section provides rules for managing compute endpoints associated with branches in a project. Compute endpoints are Neon compute instances that allow you to connect to and interact with your databases.

Manage compute endpoints

Create compute endpoint

  1. Action: Creates a new compute endpoint (a Neon compute instance) and associates it with a specified branch.
  2. Endpoint: POST /projects/{project_id}/endpoints
  3. Path Parameters:
    • project_id (string, required): The unique identifier of the project.
  4. Body Parameters: endpoint (object, required): The container for the new endpoint's properties.
    • branch_id (string, required): The ID of the branch to associate the endpoint with.
    • type (string, required): The endpoint type. A branch can have only one read_write endpoint but multiple read_only endpoints. Allowed values: read_write, read_only.
    • region_id (string, optional): The region where the endpoint will be created. Must match the project's region.
    • autoscaling_limit_min_cu (number, optional): The minimum number of Compute Units (CU). Minimum 0.25.
    • autoscaling_limit_max_cu (number, optional): The maximum number of Compute Units (CU). Minimum 0.25.
    • provisioner (string, optional): The compute provisioner. Specify k8s-neonvm to enable Autoscaling. Allowed values: k8s-pod, k8s-neonvm.
    • suspend_timeout_seconds (integer, optional): Duration of inactivity in seconds before suspending the compute. Ranges from -1 (never suspend) to 604800 (1 week).
    • disabled (boolean, optional): If true, restricts connections to the endpoint.

Example Request:

curl 'https://console.neon.tech/api/v2/projects/hidden-river-50598307/endpoints' \
  -H 'Accept: application/json' \
  -H "Authorization: Bearer $NEON_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "endpoint": {
    "branch_id": "br-your-branch-id",
    "type": "read_only"
  }
}'

Example Response:

Read the full file on GitHub · 562 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 562 lines · 14 tokens per session scan A 46f36fd10ed7

Subscribe to this mod's changes

neon-api-endpoints is a cursor rule published in the GitHub repository neondatabase/ai-rules (86 stars, last pushed 6mo ago), licensed MIT. It adds 14 tokens to every session and 5,880 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

neon-api-endpoints compared with cursor rules from other repositories

neon-api-endpoints next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
neon-api-endpointsneondatabase/ai-rulesCursor rule866mo agoMITA14Cursor
netlify-databasenetlify/context-and-toolsCursor rule58todayMITC153Cursor
aws-rds-best-practicesbeettlle/CursorRulesCursor rule215d agononeA0Cursor
cdk-infrastructure-dataGoranErhartic/cursor-development-rulesCursor rule209mo agoMITA24Cursor
rds-proxyGoranErhartic/cursor-development-rulesCursor rule209mo agoMITA18Cursor
ponytailDietrichGebert/ponytailCursor rule203k10d agoMITA604Cursor
angular-20angular/angularCursor rule102ktodayMITA0Cursor