文章摘要
pgEdge has introduced an MCP Server to enable AI assistants, particularly Anthropic's Claude 3.5 Sonnet, to interact with distributed PostgreSQL clusters. The server functions as a tool provider, translating Claude's tool calls, which are valid JSON objects, into executable SQL commands. This leverages Claude 3.5 Sonnet's new tool use capabilities facilitated by the Model Context Protocol (MCP). The article demonstrates setting up the pgEdge MCP Server and using Claude to query a distributed PostgreSQL database, enabling AI assistants programmatic access to external data resources.