Documentation
How to reach a HornetHive PostgreSQL database: the REST API, the GraphQL API, the JavaScript and TypeScript SDK, and the MCP server for AI agents.
REST API
Every route of the HornetHive REST API for PostgreSQL: PostgREST-style filters, OR groups, ordering, counts, bulk inserts and upserts, updates, deletes, function calls, schemas, errors, and an OpenAPI 3.1 document for each database.
- Endpoint and keys
- Reading rows
- Filters
- OR and nested conditions
- Ordering, paging and counts
- Inserting rows
GraphQL API
The HornetHive GraphQL API for PostgreSQL, powered by Hasura: the endpoint and keys, where your tables are, syncing after DDL, queries, mutations, joins through views, introspection and limits.
- Endpoint and keys
- Where your tables are
- After you change tables
- Queries
- Mutations
- Joins
JavaScript SDK
@hornetcloud/hive-js, the JavaScript and TypeScript client for HornetHive: connecting, filters, inserts and upserts, updates and deletes, functions, SQL, schemas, types and errors.
- Install and connect
- Reading rows
- Filters
- Inserting, upserting, updating, deleting
- Functions, SQL and schemas
- TypeScript
MCP server
HornetHive's Model Context Protocol server for Claude, Cursor and other AI agents: connecting a client, what each tool does, the scopes keys need, and how agents read data.
- Server and keys
- Connecting a client
- Tools
- Reading and writing data
- Calls and limits