# Neon AI employee

Viktor works in Neon for you. Ask in Slack or Microsoft Teams.

Viktor is an AI employee that connects to Neon and helps you query and maintain application databases, running 122 Neon actions for you like Fetch, Search, and Run sql. Ask in plain English from your workspace; Viktor does the work in Neon and reports back. Viktor connects through a managed connector.

- Tool: Neon
- Category: Productivity
- Connection: Managed connector
- Actions available: 122
- Currently available in: Slack, Microsoft Teams, and Discord
- Page: https://viktor.com/integrations/neon-2

## What can your AI employee do in Neon?

Viktor connects to your Neon account and completes work in it. He doesn't just answer questions about Neon, he takes the actions on your behalf and delivers the finished result to your workspace.

Unlike workflow builders such as Zapier or Make, there is nothing to configure - no triggers to map, no workflows to maintain. You describe the outcome in plain English, and Viktor picks the right Neon actions, chains them with the other 9,800+ tools he connects to, and asks for approval before anything sensitive runs.

### About Neon

The database developers trust, on a serverless platform designed to help you build reliable and scalable applications faster.

### How a run works

1. **You ask in your workspace** - Describe what you need in plain English
2. **Viktor picks the actions** - Selects from 122 Neon actions, chains them together
3. **Runs in Neon** - Helps you query and maintain application databases - your real data.
4. **Reports back** - Delivers the finished result to your workspace

## Use Neon from Slack and Microsoft Teams

Message Viktor in a Slack channel, a Microsoft Teams chat or a direct message. He opens Neon, does the work and posts the result in the same thread, so nobody has to switch tabs.

He can also run Neon work on a schedule, like a weekly Neon summary posted to your team's channel. Anything sensitive waits for your approval before it runs.

## Security and permissions

- Managed connector authorization - Viktor never sees your password, and you can revoke access at any time.
- Review-first approvals: sensitive Neon actions wait for your sign-off before they run.
- Isolated compute per team, encrypted in transit and at rest - and your data is never used to train models.
- SOC 2 Type 1 compliant, with Type 2 and ISO 27001 in progress.

## What can you ask Viktor to do in Neon?

- "Query Neon for last month's signups and summarize the trend."
- "Check Neon for slow queries this week and flag the worst offenders."
- "Sync new records from Neon into a sheet every morning."
- "Watch Neon for a spike in errors and alert me with the likely cause."

## How does Viktor work with Neon?

1. Open Viktor in a supported workspace.
2. Connect Neon through a managed connector - Viktor handles authentication.
3. Ask in plain English. Viktor runs the Neon actions, chains them with your other tools when needed, and reports back. Sensitive actions wait for your approval.

## What can Viktor do in Neon? (122 actions)

- **Add auth oauth provider** - Adds an OAuth provider configuration to the specified branch's Neon Auth integration.
- **Add auth trusted domain** - Adds a domain to the redirect URI whitelist for the specified branch.
- **Compare database schema** - Compare one database's SQL schema on a branch to another. databasename is required. Omit basebranchid to compare against the parent; it is a branch id (br-...), not a name. Pass lsn, timestamp, baselsn, or basetimestamp only for a point-in-time comparison.
- **Complete database migration** - Apply or discard a prepared migration and delete the temporary branch. NEVER run autonomously; always ask the user first. Pass migrationid, migrationsql, databasename, projectid, temporarybranchid, and parentbranchid from preparedatabasemigration. Set applychanges false to discard; omitting it applies the migration.
- **Complete query tuning** - Apply or discard query-tuning changes and delete the temporary branch. NEVER run autonomously. Before calling, apply suggested SQL with runsql on the temporary branch and re-run explainsqlstatement. Pass the tuningid from preparequerytuning, not the branch id, plus temporarybranchid. Set applychanges true to apply; omitting it discards. Call this even when the user rejects the changes. Do not use preparedatabasemigration.
- **Configure neon auth**
- **Create auth user** - Creates a new user in the Neon Auth user directory for the specified branch.
- **Create branch** - Creates a branch with a read-write compute and waits until it is ready. Pass nocompute: true to skip the endpoint. Does not return a connection string; call getconnectionstring with the project and branch id. Copies the parent at HEAD; point-in-time restore is restoresnapshot.
- **Create credential** - Issues a new scoped service credential anchored to the specified branch.
- **Create postgres database** - Creates a database in the specified branch.
- **Create postgres endpoint** - Creates a compute endpoint on a branch. Does not return a connection string; call getconnectionstring.
- **Create postgres role** - Creates a Postgres role in the specified branch.
- **Create project** - Creates a Neon project and waits until the default compute is ready. orgid is optional: organization API keys use their organization; personal API keys auto-select when unambiguous and otherwise return the IDs to choose from. Does not return a connection string; call getconnectionstring with the project id.
- **Create snapshot** - Creates a snapshot from the specified branch.
- **Create storage bucket** - Creates a new branchable object storage bucket on the specified branch.
- **Create trigger** - Creates a trigger for a Function visible on the branch.
- **Delete auth oauth provider** - Deletes an OAuth provider from the specified project.
- **Delete auth trusted domain** - Removes a domain from the redirect URI whitelist for the specified branch.
- **Delete auth user** - Deletes the specified user from the Neon Auth user directory for the specified branch.
- **Delete branch** - Delete a branch and all its data. NEVER run autonomously; always ask the user first. For the whole project, use deleteproject.
- **Delete data api** - Deletes the Neon Data API for the specified branch.
- **Delete function** - Deletes the function identified by its slug.
- **Delete functions custom domain** - Removes a custom domain registered on the branch and stops routing it.
- **Delete postgres database** - Deletes the specified database from the branch.
- **Delete postgres endpoint** - Deletes the specified compute endpoint.
- **Delete postgres role** - Deletes the specified Postgres role from the branch.
- **Delete project** - Delete a Neon project and all its data. NEVER run autonomously; always ask the user first. For a single branch, use deletebranch.
- **Delete snapshot** - Deletes the specified snapshot.
- **Delete storage bucket** - Deletes the named bucket from the specified branch.
- **Delete storage object** - Deletes the named object from the bucket on the specified branch.
- **Delete storage objects by prefix** - Soft-deletes every object on the specified branch whose key starts with prefix, in a single call.
- **Delete trigger** - Deletes a branch-local trigger or writes a branch-local tombstone for an inherited trigger so it does not reappear.
- **Deploy function** - Creates a deployment for the function. Supply at least one of zip, environment, or runtime; omitted fields inherit the latest version. The first deployment must include zip.
- **Describe branch** - Get a tree view of all objects in a branch, including databases, schemas, tables, views, and functions. Do not use when you only need table names (use getdatabasetables instead) or column detail (use describetableschema instead).
- **Describe project** - Retrieves the project record (settings, compute, usage). Call listbranches for branches.
- **Describe table schema** - Get column definitions, data types, and constraints for a specific table. Do not use when you need all tables in a database (use getdatabasetables instead).
- **Disable auth** - Disables the Neon Auth integration for the specified branch, removing the connection to the authentication provider.
- **Disable realtime** - Disables Realtime for the branch and discards its shared secret.
- **Enable realtime** - Enables Realtime for the branch, or applies new options to an enabled branch.
- **Explain sql statement** - Generate the execution plan for a SQL statement. When analyze is true, PostgreSQL executes the statement and any side effects. Use analyze: false to inspect a statement without executing it. Never analyze potentially destructive SQL autonomously. Do not use when you need query results (use runsql instead).
- **Fetch** - Fetch detailed information about a specific organization, project, or branch using the ID returned by the search tool.
- **Finalize branch restore** - Finalize a branch created with restoresnapshot and finalize: false: reassign computes (this restarts them) and swap names so it replaces the original branch.
- **Get ai gateway** - Returns the AI Gateway endpoint host for the specified branch, used to render code-snippet base URLs.
- **Get auth** - Retrieves the Neon Auth integration details for the specified branch, including the auth provider type and integration status.
- **Get branch** - Retrieves information about the specified branch.
- **Get connection string** - Get a PostgreSQL connection string for a Neon database. The branch must have a compute endpoint. createproject and createbranch do not return one; call this after they succeed. Branch, compute, and database are optional and resolved automatically if not specified; projectid follows the connection scope. Requires write access: the connection string carries a privileged role password, so it is unavailable in read-only mode. A read-only caller who needs a DATABASEURL must copy it from manually.
- **Get data api** - Retrieves the Neon Data API configuration for the specified branch, including endpoint URL, enabled state, and database settings.
- **Get database tables** - List all tables in a Neon database. Do not use when you need column-level detail for a specific table (use describetableschema instead).
- **Get default branch** - Resolve the project's default branch by the default flag, not by name.
- **Get doc resource** - Fetch one Neon documentation page as markdown. Pass a slug from listdocsresources (for example docs/guides/prisma.md).
- **Get function** - Returns the function identified by its slug.
- **Get neon auth config** - Read Neon Auth config for a branch with OAuth and SMTP secrets redacted as "redacted". Requires provisionneonauth first.
- **Get operation** - Retrieves details for the specified operation.
- **Get postgres database** - Retrieves information about the specified database.
- **Get postgres endpoint** - Retrieves information about the specified compute endpoint.
- **Get postgres role** - Retrieves details about the specified role.
- **Get realtime** - Retrieves whether Realtime is enabled for the branch, whether a change is still being applied, and, once provisioned, its invocation URL and allowed origins.
- **Get realtime secret** - Retrieves the secret the application backend issues Realtime tokens with. Requires write access: the secret lets its holder issue Realtime tokens for the branch, so it is unavailable in read-only mode. Call enablerealtime first.
- **Get snapshot schedule** - Returns the backup schedule for the specified branch, including the configured snapshot frequencies.
- **Get storage** - Returns whether branchable object storage is usable for the specified branch.
- **Get trigger** - Returns the trigger visible on the branch.
- **Inspect database** - Run one read-only neon inspect db check (pick check from the input schema). Not for arbitrary SQL (runsql), one statement's plan (explainsqlstatement), or applying indexes (preparequerytuning). Omit databasename to cover every database; some checks are compute-wide. If a check needs an extension, the tool names CREATE EXTENSION; ask before running it.
- **List auth oauth providers** - Lists the OAuth providers configured for the specified branch's Neon Auth integration.
- **List auth trusted domains** - Lists the trusted domains in the redirect URI whitelist for the specified branch.
- **List branch computes** - Retrieves a list of compute endpoints for the specified branch.
- **List branches** - Retrieves a list of branches for the specified project. Returns every page. Pass limit to cap how many.
- **List credentials** - Returns metadata for customer-issued credentials on the branch.
- **List docs resources** - List Neon documentation page slugs from neon.com/docs/llms.txt. Call this before getdocresource; do not guess slugs.
- **List functions** - Lists functions on the specified branch. Returns every page. Pass limit to cap how many.
- **List functions custom domains** - Lists all custom domains registered on the branch, across every target entity. Returns every page. Pass limit to cap how many.
- **List log fields** - Lists the low-cardinality log fields observed on this branch. Call listlogfieldvalues with fieldname to list distinct values.
- **List log field values** - Lists distinct values for a low-cardinality log field. Call listlogfields first for fieldname; a field the branch has never emitted returns unknownfield. Pass since or starttime, not both; default is the previous six hours, max seven days. Private beta.
- **List operations** - Lists operations for a project. Omitting limit returns every remaining page. There is no cursor argument.
- **List organizations** - List all organizations the current user belongs to. Supports optional search parameter to filter by name or ID.
- **List postgres databases** - Retrieves a list of databases for the specified branch.
- **List postgres endpoints** - Retrieves a list of compute endpoints for the specified project.
- **List postgres roles** - Retrieves a list of Postgres roles from the specified branch.
- **List project members** - Lists organization members and their per-project roles for an org-owned project. Returns every page. Pass limit to cap how many.
- **List project permissions** - Retrieves details about users who have access to the project, including the permission id, the granted-to email address, and the date project access was granted.
- **List projects** - List Neon projects you own. Returns every page. Pass limit to cap how many. There is no cursor argument. orgid is optional: organization API keys use their organization; personal API keys auto-select when unambiguous and otherwise return the IDs to choose from.
- **List regions** - Lists Neon regions available to the authenticated account.
- **List shared projects** - List projects shared with the current user for collaboration. Do not use for projects you own (use listprojects instead). Supports optional search (filter by name or ID) and limit (default 10) parameters.
- **List slow queries** - List queries from pgstatstatements by execution time, slowest first. For sizes, indexes, locks, cache, bloat, or replication use inspectdatabase.
- **List snapshots** - Lists the snapshots for the specified project.
- **List storage buckets** - Lists branchable object storage buckets visible on the specified branch, including those inherited from ancestor branches.
- **List storage objects** - Lists objects visible in the named bucket on the specified branch, including those inherited from ancestor branches. Returns every page. Pass limit to cap how many.
- **List triggers** - Lists the complete project-bounded set of triggers visible on the branch, ordered by triggerid.
- **Load resource**
- **Prepare database migration** - Apply a schema change on a temporary branch and return a migrationid. Test with runsql on that branch, ask the user, then completedatabasemigration — even if they reject, so the temporary branch is deleted. Pass every field from the prepare response.
- **Prepare query tuning** - Analyze a slow query on a temporary branch and return a tuningid. Apply suggested SQL with runsql on that branch, re-run explainsqlstatement there, then completequerytuning with the tuningid (not the branch id) — applychanges true if they accept, omit it or pass false if they reject, so the temporary branch is deleted. Do not use preparedatabasemigration.
- **Presign storage object** - Returns a presigned URL that transfers bytes directly to or from the object's bucket on the specified branch, without the caller ever handling S3 credentials.
- **Provision neon auth** - Enables Neon Auth for the specified branch by connecting it to an authentication provider.
- **Provision neon data api** - Creates a new instance of Neon Data API in the specified branch.
- **Query logs** - Returns logs for a branch. Pass limit to cap how many. There is no cursor argument. Filters combine with AND. Pass logql instead of structured filters, not with them. Give the window as since or starttime, not both; default is the previous hour, max seven days; endtime is exclusive. Private beta; a branch without logs access returns HTTP 404 with reason "telemetrynotenabled".
- **Recover project** - Recovers a deleted project within the 7-day deletion recovery period.
- **Register functions custom domain** - Registers a hostname on the branch and routes it to a function. Pass entitytype: "function" and entityid as the slug from listfunctions. Point a CNAME at the returned cnametarget.
- **Reset from parent** - Reset a branch to its parent's current HEAD. Discards every change the branch has written since it diverged. NEVER run autonomously; always ask the user first. preserveundername saves the current state first and is required when the branch has children; those children move to the new branch. Point-in-time restore is restoresnapshot.
- **Reset postgres role password** - Resets the password for the specified Postgres role.
- **Restart postgres endpoint** - Restarts the specified compute endpoint by immediately suspending it and then starting it again.
- **Restore snapshot** - Restore a snapshot onto a new or existing branch. The call waits until the branch is ready. Pass targetbranchid to restore onto an existing branch; omit it to create one. Pass finalize: false then call finalizebranchrestore to swap names later.
- **Revoke credential** - Soft-deletes the credential.
- **Rotate credential** - Replaces the secret material on an existing scoped credential in place.
- **Rotate realtime secret** - Replaces the branch's Realtime shared secret and waits until the change is applied. NEVER run autonomously; always ask the user first. Call getrealtimesecret afterwards and update the application backend with the new value.
- **Run sql** - Execute one SQL statement on a Neon database. If a prior step created a temporary branch, pass that branchid. NEVER run destructive SQL autonomously; always ask the user first.
- **Run sql transaction** - Execute multiple SQL statements as one transaction. If a prior step created a temporary branch, pass that branchid. NEVER run destructive SQL autonomously; always ask the user first.
- **Search** - Search across all organizations, projects, and branches by keyword. Returns matching items with id, title, and URL. Query must be at least 3 characters. Do not use when you need all projects (use listprojects instead).
- **Send feedback** - Send anonymous feedback about Neon or this MCP server to the Neon team. Only call this when the user asks to give feedback. Sends only the feedback text, not account, project, or connection details.
- **Set default branch** - Sets the specified branch as the project's default branch.
- **Set snapshot schedule** - Replace a branch's automatic snapshot schedule. Frequency must be daily, weekly, or monthly.
- **Start postgres endpoint** - Starts a compute endpoint.
- **Suspend postgres endpoint** - Suspends the specified compute endpoint.
- **Update auth config** - Updates the auth configuration for the branch.
- **Update auth oauth provider** - Updates an OAuth provider for the specified project.
- **Update auth user role** - Updates the role of a user in the Neon Auth user directory for the specified branch.
- **Update branch** - Updates the specified branch.
- **Update data api** - Updates the Neon Data API configuration for the specified branch.
- **Update function** - Updates the function's mutable metadata — currently only the display name.
- **Update postgres database** - Updates the specified database in the branch.
- **Update postgres endpoint** - Updates the specified compute endpoint.
- **Update project** - Updates the specified project.
- **Update snapshot** - Updates the specified snapshot.
- **Update trigger** - Applies a partial update.

## Viktor uses Neon together with

- [Slack](https://viktor.com/integrations/slack)
- [Gmail](https://viktor.com/integrations/gmail)
- [Google Sheets](https://viktor.com/integrations/google-sheets)
- [HubSpot](https://viktor.com/integrations/hubspot)
- [Salesforce](https://viktor.com/integrations/salesforce)
- [Stripe](https://viktor.com/integrations/stripe)

## More Productivity integrations

- [GitHub](https://viktor.com/integrations/github)
- [Jira & Confluence](https://viktor.com/integrations/jira-confluence)
- [Asana](https://viktor.com/integrations/asana)
- [Basecamp](https://viktor.com/integrations/basecamp)
- [Monday.com](https://viktor.com/integrations/monday-com)
- [Linear](https://viktor.com/integrations/linear)
- [Jira](https://viktor.com/integrations/jira)
- [Notion](https://viktor.com/integrations/notion)

## FAQ

### Does Viktor integrate with Neon?

Yes. Neon is one of the 9,800+ tools Viktor connects to, via a managed connector. Once connected, anyone on your team can put Viktor to work in Neon from their workspace - no workflow builder, no code.

### How do I connect Neon to Viktor?

Ask Viktor in your workspace to connect Neon. Viktor walks you through authorizing the connection, handles authentication itself, and starts working right away. Setup takes about two minutes, and you can revoke access at any time.

### What can Viktor do in Neon?

Viktor can run 122 Neon actions, including Fetch, Search, and Run sql - and chain them with other tools in a single request. In practice that means Viktor helps you query and maintain application databases. If a task spans several actions, Viktor plans the sequence itself and reports back when the work is done.

### Do I need to build workflows for Neon?

No. Viktor isn't a workflow builder - there are no triggers to map and nothing to maintain. You ask for the outcome in plain English in your workspace, and Viktor decides which Neon actions to take, runs them, and reports back.

### Is my Neon data secure with Viktor?

Yes. Viktor connects to Neon through a managed connector, runs in an isolated environment per team, and never trains models on your data. Sensitive actions wait for your approval, and you can revoke access at any time. Viktor is SOC 2 Type 1 compliant, with Type 2 and ISO 27001 in progress.

### How much does the Neon integration cost?

Nothing extra - every integration, including Neon, is available on every plan. You can start free with up to $100 in credits, no credit card required; the Team plan is $100 a month.

### Can Viktor use Neon together with my other tools?

Yes - that's the point. Viktor connects to 9,800+ tools and works across them in a single run: he can pull data from Neon, cross-reference it with another tool - for example Slack or Gmail, and deliver the finished result in your workspace.

## Get started

Viktor is free to start - up to $100 in credits, no credit card required. All 9,800+ integrations are included on every plan. Sign up at https://viktor.com or browse all integrations at https://viktor.com/integrations.
