Agents Sql Demo
Provides a template for building an MCP server with a PostgreSQL database backend for managing user data.
This repository offers a simplified template for building an MCP server, demonstrating how to connect AI agents to data sources using the Model Context Protocol. It provides a foundational example of exposing database operations (such as adding, retrieving, finding, and deleting users) as tools accessible via an MCP client. The server interacts with a toy PostgreSQL database, showcasing how to handle client requests, translate them into database queries, and return structured results or errors.
主な機能
01Translates requests into operations on a PostgreSQL database.
02Provides example tools for user management (add, get, find, delete).
03Returns structured results or errors back to the client.
04Defines and exposes custom tools via the MCP standard.
05Handles requests from an MCP client.
060 GitHub stars
ユースケース
01Building custom tools for data access and manipulation via MCP.
02Connecting AI agents to PostgreSQL databases.
03Developing secure gateways between AI agents and external resources.