---
title: "Give your agent Neon tools"
description: "Neon's new @neon/tools package turns the ergonomic @neon/sdk client into typed agent tools, using Zod request schemas generated from the OpenAPI spec, with adapters for MCP, Mastra and Vercel's Eve."
url: "https://swe.quest/articles/give-your-agent-neon-tools-25669ff9dbbd96d7"
canonical: "https://neon.com/blog/give-your-agent-neon-tools"
source: "Neon"
published: "2026-09-03"
difficulty: "medium"
kind: "Announcement"
reading_minutes: 7
tags: ["ai-agents","api-design","typescript","postgres"]
---

# Give your agent Neon tools

A post on [Neon](https://swe.quest/sources/neon.md), published 2026-09-03, 7 min read, Announcement. Original: [https://neon.com/blog/give-your-agent-neon-tools](https://neon.com/blog/give-your-agent-neon-tools)

## Summary

Neon's new @neon/tools package turns the ergonomic @neon/sdk client into typed agent tools, using Zod request schemas generated from the OpenAPI spec, with adapters for MCP, Mastra and Vercel's Eve. A raw 1:1 OpenAPI-to-MCP mapping still makes a poor default even now that progressive tool discovery has eased context bloat, because agents need workflow-level operations such as branches.createAndConnect (create branch, attach compute, fetch connection string) rather than raw REST calls. The package now powers the hosted Neon MCP Server, which grows to 104 tools: 85 Management API tools plus 19 hand-written tools for SQL, migrations and diagnostics. The server can be filtered by category, scoped to a project or made read-only, and all non-read operations carry approval annotations that the host is responsible for enforcing.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [API design](https://swe.quest/tags/api-design.md) (Backend & APIs)
- [TypeScript](https://swe.quest/tags/typescript.md) (Languages)
- [PostgreSQL](https://swe.quest/tags/postgres.md) (Data & databases)

## Prerequisites

- Model Context Protocol basics
- OpenAPI code generation ([easy posts on AI for coding](https://swe.quest/tags/ai-coding.md?difficulty=easy))
- TypeScript ([easy posts on TypeScript](https://swe.quest/tags/typescript.md?difficulty=easy))

## Keywords

@neon/tools, @neon/sdk, Neon MCP Server, Model Context Protocol, Mastra, Eve, Zod, OpenAPI

## Related posts

- [Auto-generating MCP Servers from OpenAPI Schemas: Yay or Nay?](https://swe.quest/articles/auto-generating-mcp-servers-from-openapi-schemas-yay-or-nay-ddbbf7dc3df515f6.md): Neon · 2025-05-01 · Easy · 4 min read · AI agents, API design, LLMs
  Auto-generating an MCP server as a 1:1 mapping of an OpenAPI spec works poorly.
- [Every app needs an MCP server, and you can build it with Neon](https://swe.quest/articles/every-app-needs-an-mcp-server-and-you-can-build-it-with-neon-1a5ce4eab0583eca.md): Neon · 2026-11-25 · Easy · 11 min read · AI agents, Identity & auth, Serverless, PostgreSQL
  An MCP server lets users drive an app from AI assistants like ChatGPT, Claude and Cursor through tools the app defines, which keeps authorization and validation in app code instead of exposing the UI or raw database access.
- [Introducing @neon/sdk, our new TypeScript client for the Neon API](https://swe.quest/articles/introducing-neon-sdk-our-new-typescript-client-for-the-neon-api-29d9cb594b8c1451.md): Neon · 2026-07-13 · Medium · 6 min read · TypeScript, API design, PostgreSQL, Developer tools
  @neon/sdk is a fetch-based, zero-dependency, ESM-only TypeScript client for the Neon API, replacing the axios-based @neondatabase/api-client.
- [Just landed in the Neon CLI](https://swe.quest/articles/just-landed-in-the-neon-cli-10a12bf3c6b45d1f.md): Neon · 2026-08-25 · Medium · 6 min read · Developer tools, PostgreSQL, AI agents, Schema migrations
  The Neon CLI is renamed from neonctl to neon (old name kept as an alias) and gains a branch-first workflow built on \`neon link\`, \`neon checkout\` and \`neon env pull\`, which store project/branch context in a local .neon file and rewrite only Neon-managed env vars.
- [Neon for Agent Platforms: A Companion Skill for the AI Agent Program](https://swe.quest/articles/neon-for-agent-platforms-a-companion-skill-for-the-ai-agent-program-6b42423040c5c41e.md): Neon · 2026-05-22 · Medium · 3 min read · PostgreSQL, Multi-tenancy, AI agents, Cloud platforms
  neon-for-agent-platforms is an open-source companion Agent Skill and set of TypeScript scripts for running fleets of Neon Postgres databases on agent platforms.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
