sub-agents.directory
PostgreSQL logo

PostgreSQL

A Model Context Protocol server that provides read-only access to PostgreSQL databases. This server enables LLMs to inspect database schemas and execute read-only queries.

Installation Instructions

How to Use Model Context Protocol (MCP) in Claude Code

What is MCP?

Model Context Protocol (MCP) is a protocol that enables LLMs to access custom tools and services. Claude Code can connect to MCP servers to access additional tools and capabilities.

Configuration Steps

  1. Add MCP Server
    • Run: claude mcp add <server-name>
    • Or manually edit ~/.claude/claude_desktop_config.json
  2. Configure MCP Servers
    • Specify servers in the JSON configuration
    • Include necessary arguments and environment variables

Example Configuration

Filesystem Server Example:

{ "mcpServers": { "filesystem": { "command": "npx", "args": [ "-y", "@modelcontextprotocol/server-filesystem", "/path/to/allowed/files" ] } } }

Important Notes

  • MCP servers extend Claude Code's capabilities
  • Only servers using the stdio transport type are supported
  • See the Claude Code documentation for more details