Neon MCP Server for LlamaIndex 17 tools — connect in under 2 minutes
LlamaIndex specializes in data-aware AI agents that connect LLMs to structured and unstructured sources. Add Neon as an MCP tool provider through Vinkius and your agents can query, analyze, and act on live data alongside your existing indexes.
ASK AI ABOUT THIS MCP SERVER
Vinkius supports streamable HTTP and SSE.
import asyncio
from llama_index.tools.mcp import BasicMCPClient, McpToolSpec
from llama_index.core.agent.workflow import FunctionAgent
from llama_index.llms.openai import OpenAI
async def main():
# Your Vinkius token. get it at cloud.vinkius.com
mcp_client = BasicMCPClient("https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp")
mcp_tool_spec = McpToolSpec(client=mcp_client)
tools = await mcp_tool_spec.to_tool_list_async()
agent = FunctionAgent(
tools=tools,
llm=OpenAI(model="gpt-4o"),
system_prompt=(
"You are an assistant with access to Neon. "
"You have 17 tools available."
),
)
response = await agent.run(
"What tools are available in Neon?"
)
print(response)
asyncio.run(main())
* Every MCP server runs on Vinkius-managed infrastructure inside AWS - a purpose-built runtime with per-request V8 isolates, Ed25519 signed audit chains, and sub-40ms cold starts optimized for native MCP execution. See our infrastructure
About Neon MCP Server
Connect your Neon account to any AI agent and take full control of your serverless PostgreSQL infrastructure through natural conversation.
LlamaIndex agents combine Neon tool responses with indexed documents for comprehensive, grounded answers. Connect 17 tools through Vinkius and query live data alongside vector stores and SQL databases in a single turn. ideal for hybrid search, data enrichment, and analytical workflows.
What you can do
- Project Management — List, create, update and delete Neon projects with region and PostgreSQL version selection
- Branch Operations — Create instant branches via copy-on-write cloning, set primary branches and manage branch lifecycle
- Compute Endpoints — Provision read-write and read-only compute hosts for your branches
- Database Administration — Create and list PostgreSQL databases within any branch
- Role Management — Create database roles (users) with auto-generated passwords for secure access
- Connection URIs — Get ready-to-use psql connection strings for any branch
The Neon MCP Server exposes 17 tools through the Vinkius. Connect it to LlamaIndex in under two minutes — no API keys to rotate, no infrastructure to provision, no vendor lock-in. Your configuration, your data, your control.
How to Connect Neon to LlamaIndex via MCP
Follow these steps to integrate the Neon MCP Server with LlamaIndex.
Install dependencies
Run pip install llama-index-tools-mcp llama-index-llms-openai
Replace the token
Replace [YOUR_TOKEN_HERE] with your Vinkius token
Run the agent
Save to agent.py and run: python agent.py
Explore tools
The agent discovers 17 tools from Neon
Why Use LlamaIndex with the Neon MCP Server
LlamaIndex provides unique advantages when paired with Neon through the Model Context Protocol.
Data-first architecture: LlamaIndex agents combine Neon tool responses with indexed documents for comprehensive, grounded answers
Query pipeline framework lets you chain Neon tool calls with transformations, filters, and re-rankers in a typed pipeline
Multi-source reasoning: agents can query Neon, a vector store, and a SQL database in a single turn and synthesize results
Observability integrations show exactly what Neon tools were called, what data was returned, and how it influenced the final answer
Neon + LlamaIndex Use Cases
Practical scenarios where LlamaIndex combined with the Neon MCP Server delivers measurable value.
Hybrid search: combine Neon real-time data with embedded document indexes for answers that are both current and comprehensive
Data enrichment: query Neon to augment indexed data with live information before generating user-facing responses
Knowledge base agents: build agents that maintain and update knowledge bases by periodically querying Neon for fresh data
Analytical workflows: chain Neon queries with LlamaIndex's data connectors to build multi-source analytical reports
Neon MCP Tools for LlamaIndex (17)
These 17 tools become available when you connect Neon to LlamaIndex via MCP:
create_branch
Optionally set a human-readable name and a parent branch ID to clone from (if omitted, clones from the project's primary branch). Branches are created instantly with zero data copy overhead. Returns the new branch along with its initial endpoints, databases and roles. Create a new branch in a Neon project
create_database
Requires the database name. Optionally set the owner role name (must exist in the branch — see list_roles). Returns the new database metadata. Create a new database in a Neon branch
create_endpoint
Specify the endpoint type: "read_write" for full access or "read_only" for read replicas. A branch can have at most one read_write endpoint. Returns the new endpoint with its connection host and configuration. Create a compute endpoint for a Neon branch
create_project
Optionally set a human-readable name, AWS region (e.g. "aws-us-east-2", "aws-eu-central-1") and PostgreSQL version (15, 16, 17). A default branch, database and read-write endpoint are automatically provisioned. Returns the new project along with its initial connection URIs, roles, databases and endpoints. Create a new Neon project
create_role
The role can be used to authenticate database connections and own databases. Provide the project_id, branch_id and desired role name. Returns the new role metadata including the generated password. Create a new database role in a Neon branch
delete_branch
The primary branch cannot be deleted — set another branch as primary first. Provide the project_id and branch_id. WARNING: this action is irreversible and destroys all branch data. Delete a Neon branch
delete_project
The project is recoverable for 7 days via the Neon console. All associated branches, databases, endpoints and data are deleted. Provide the project_id. WARNING: this action destroys all data in the project. Delete a Neon project
get_branch
Provide both the project_id and branch_id. Get details for a specific Neon branch
get_connection_uri
Optionally specify a branch_id to get the URI for a specific branch (defaults to the primary branch). The URI includes the host, database name, role and password. Use this to connect psql, ORM tools or application clients. Get a PostgreSQL connection URI for a Neon project
get_project
Provide the project_id (e.g. "purple-shape-411361") obtained from list_projects. Get details for a specific Neon project
list_branches
Each branch is an isolated PostgreSQL environment with its own compute, databases and roles. Branches can be created from any point-in-time using copy-on-write cloning. Returns branch ID, name, parent ID, primary status, creation date and current state. Use the project_id from list_projects. List branches in a Neon project
list_databases
Each database has a name, owner role and creation metadata. Use the project_id and branch_id to scope the query. List databases in a Neon branch
list_endpoints
Each endpoint has a type (read_write or read_only), host address, current state (active, idle, suspended) and autoscaling configuration. A branch can have at most one read_write endpoint. Use the project_id and branch_id. List compute endpoints for a Neon branch
list_projects
Each project is a workspace that contains branches, compute endpoints, databases and roles. Returns project ID, name, region, PostgreSQL version, creation date and resource usage metadata. Use this as the starting point for all Neon operations — you need a project_id to manage branches, databases or endpoints. List all Neon projects
list_roles
Each role has a name, creation date and privilege metadata. Use the project_id and branch_id to scope the query. Roles are used to authenticate database connections and control access. List database roles in a Neon branch
set_primary_branch
The primary branch is the default source for new branch cloning and receives the default read-write compute endpoint. Provide the project_id and the branch_id to promote. Set a branch as the primary branch of a Neon project
update_project
Provide the project_id and the new name. This does not affect branches, databases or endpoints. Update a Neon project name
Example Prompts for Neon in LlamaIndex
Ready-to-use prompts you can give your LlamaIndex agent to start working with Neon immediately.
"List all my Neon projects and show me which regions they're in."
"Create a new branch called 'feature-auth' from the primary branch of my project."
"Get the connection URI for the main branch of my project."
Troubleshooting Neon MCP Server with LlamaIndex
Common issues when connecting Neon to LlamaIndex through the Vinkius, and how to resolve them.
BasicMCPClient not found
pip install llama-index-tools-mcpNeon + LlamaIndex FAQ
Common questions about integrating Neon MCP Server with LlamaIndex.
How does LlamaIndex connect to MCP servers?
Can I combine MCP tools with vector stores?
Does LlamaIndex support async MCP calls?
Connect Neon with your favorite client
Step-by-step setup guides for every MCP-compatible client and framework:
Anthropic's native desktop app for Claude with built-in MCP support.
AI-first code editor with integrated LLM-powered coding assistance.
GitHub Copilot in VS Code with Agent mode and MCP support.
Purpose-built IDE for agentic AI coding workflows.
Autonomous AI coding agent that runs inside VS Code.
Anthropic's agentic CLI for terminal-first development.
Python SDK for building production-grade OpenAI agent workflows.
Google's framework for building production AI agents.
Type-safe agent development for Python with first-class MCP support.
TypeScript toolkit for building AI-powered web applications.
TypeScript-native agent framework for modern web stacks.
Python framework for orchestrating collaborative AI agent crews.
Leading Python framework for composable LLM applications.
Data-aware AI agent framework for structured and unstructured sources.
Microsoft's framework for multi-agent collaborative conversations.
Connect Neon to LlamaIndex
Get your token, paste the configuration, and start using 17 tools in under 2 minutes. No API key management needed.
