N
Neon6mo ago
genetic-orange

N8N MCP Client

I am trying to use MCP within n8n but seem to be running into issues. Does anyone have any expereince connecting to n8n. I think it's a credential issue.
Command: npx
Arguments: -y @neondatabase/mcp-server-neon
Environments: NEON_API_KEY=napi_xxxxxxxxxxxxxxx
Command: npx
Arguments: -y @neondatabase/mcp-server-neon
Environments: NEON_API_KEY=napi_xxxxxxxxxxxxxxx
See image attached for the configuration. The Error I keep receiving
{
"message": "Failed to execute operation: Failed to connect to MCP server: MCP error -32000: Connection closed",
"timestamp": [varies],
"name": "NodeOperationError",
"context": {},
"cause": {
"level": "warning",
"tags": {}
}
}
{
"message": "Failed to execute operation: Failed to connect to MCP server: MCP error -32000: Connection closed",
"timestamp": [varies],
"name": "NodeOperationError",
"context": {},
"cause": {
"level": "warning",
"tags": {}
}
}
No description
4 Replies
foreign-sapphire
foreign-sapphire6mo ago
I'm wondering if adding a start argument might help: @neondatabase/mcp-server-neon start https://neon.tech/docs/ai/connect-mcp-clients-to-neon#manual-configuration
Neon
Connect MCP Clients to Neon - Neon Docs
The Neon MCP Server allows you to connect various Model Context Protocol (MCP) compatible AI tools to your Neon Postgres databases. This guide provides instructions for connecting popular MCP clients ...
foreign-sapphire
foreign-sapphire6mo ago
maybe try a smithery command: npx -y @smithery/cli@latest install neon And I'm wondering about the Environment field. Does it expect that you define a variable name or could you just enter your Neon API key by itself.
genetic-orange
genetic-orangeOP6mo ago
Thanks for your help! I ended up having success but without using the Environment field. The following configuration worked, but probably not the best that the api key is in the args.
Command: npx
Arguments: -y @neondatabase/mcp-server-neon start NEON_API_KEY=napi_xxxxxxxxxxxxxxx
Environments:
Command: npx
Arguments: -y @neondatabase/mcp-server-neon start NEON_API_KEY=napi_xxxxxxxxxxxxxxx
Environments:
foreign-sapphire
foreign-sapphire6mo ago
Thanks for reporting back!

Did you find this page helpful?