Langgraph-MCP Client for Postgresql Example
LangGraph implementation interacting with a PostgreSQL MCP Server
Overview
LangGraph-MCP is a client implementation that interacts with a PostgreSQL MCP (Model Context Protocol) server, allowing applications to connect AI models to various data sources and tools.
To use LangGraph-MCP, clone the repository, set up your environment variables in a .env file, install the required packages, and run the query agent to interact with the MCP server.
- Interaction with PostgreSQL databases through MCP servers. - Easy setup with Docker for running the MCP server. - Utilizes LangGraph agents for efficient data handling.
- Connecting AI models to structured data sources for enhanced context.
- Building applications that require real-time data interaction with AI.
- Facilitating the development of AI applications using standardized protocols.
Add to your AI client
Use these steps to connect Langgraph-MCP Client for Postgresql Example in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"langgraph-mcp-client-briancusack": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-langgraph-mcp-client-briancusack"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"langgraph-mcp-client-briancusack": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-langgraph-mcp-client-briancusack"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"langgraph-mcp-client-briancusack": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-langgraph-mcp-client-briancusack"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"langgraph-mcp-client-briancusack": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-langgraph-mcp-client-briancusack"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"langgraph-mcp-client-briancusack": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-langgraph-mcp-client-briancusack"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"langgraph-mcp-client-briancusack": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-langgraph-mcp-client-briancusack"
]
}
}
}FAQ
What is MCP?
MCP stands for Model Context Protocol, which standardizes how applications provide context to LLMs.
Do I need to install Docker?
Yes, Docker is required to run the MCP server as a container.
Is there a license for this project?
Yes, this project is licensed under the MIT License.