
sav-maya/postgres-docs-mcp
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
공공 오픈 소스 MCP 서버, 버전 PostgreSQL 문서
개요
Public, open-source Model Context Protocol server for the official, versioned PostgreSQL 문서. 현재 안정된 릴리즈에 기본적으로 저장하거나 모든 온라인 버전을 읽을 수 있습니다. 아카이브, 베타 및 개발 문서. - list versions - 온라인으로 모든 문서 버전을 나열하십시오 - search docs - 특정 PostgreSQL 버전 내 검색 - get doc page - 긴 페이지에 대한 질과 함께 Markdown으로 문서 페이지를 읽으십시오. 읽기 전용 문서 서버입니다. 그것은: - www.postgresql.org에서 공개 페이지 만 fetches - PostgreSQL 데이터베이스에 결코 연결되지 않습니다 - credentials, API 키 또는 환경 변수가 필요하지 않습니다 - SQL을 실행하거나 PostgreSQL 프로젝트를 수정할 수 없습니다. 필요한 경우 uv를 설치, 다음이 서버에 추가 ~/.cursor/mcp.json: 파일을 저장 한 후 Restart Cursor. 첫번째 발사는 서버와 그것의 의존성을 다운로드합니다. , postgres-docs는 세 가지 도구로 활성화되어야 합니다. 그런 다음 Cursor 질문을 일반적으로.
개요(AI 번역)
공공, 오픈 소스 모델 Context Protocol 공식 서버, versioned PostgreSQL 문서.
그것은 현재 안정되어 있는 방출에 과태를 검색하거나 읽을 수 있습니다 아카이브, 베타 및 개발 문서와 같은 버전.
도구
list_versions- 온라인 모든 문서 버전 목록search_docs- 특정 PostgreSQL 버전 내에서 검색get_doc_page- Markdown으로 문서 페이지를 읽습니다. 긴 페이지
액세스 및 보안
읽기 전용 문서 서버입니다. 그것은:
- [T3]]
- PostgreSQL 데이터베이스에 연결할 수 없습니다.
- credentials, API 키 또는 환경 변수가 필요하지 않습니다.
- SQL을 실행하거나 PostgreSQL 프로젝트를 수정할 수 없습니다.
Cursor에서 사용
필요한 경우 uv 설치,
그런 다음이 서버에 추가 ~/.cursor/mcp.json:
파일을 저장 한 후 Restart Cursor. 첫 번째 시작은 서버를 다운로드하고
그것의 의존도. Cursor 설정 → 도구 및 MCP, postgres-docs
세 가지 도구로 사용할 수 있습니다.
그런 다음 Cursor 질문을 일반적으로. 문서가 있을 때 도구가 호출됩니다. 지원하다 예를 들면:
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
PostgreSQL Docs MCP
A public, open-source Model Context Protocol server for the official, versioned PostgreSQL documentation.
It defaults to the current stable release and can search or read every online version—including archived, beta, and development documentation.
Tools
list_versions— list every documentation version available onlinesearch_docs— search within a specific PostgreSQL versionget_doc_page— read a documentation page as Markdown, with pagination for long pages
Access and security
This is a read-only documentation server. It:
- fetches only public pages from
www.postgresql.org - never connects to a PostgreSQL database
- does not need credentials, API keys, or environment variables
- cannot execute SQL or modify PostgreSQL projects
Use it in Cursor
Install uv if needed,
then add this server to ~/.cursor/mcp.json:
{
"mcpServers": {
"postgres-docs": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/sav-maya/postgres-docs-mcp",
"postgres-docs-mcp"
]
}
}
}
Restart Cursor after saving the file. The first launch downloads the server and
its dependencies. In Cursor Settings → Tools & MCP, postgres-docs should
appear as enabled with three tools.
Then ask Cursor questions normally. It calls the tools when documentation is needed. For example:
Which PostgreSQL documentation versions are available?Using the PostgreSQL 18 docs, explain logical replication conflicts.Look up CREATE PUBLICATION in PostgreSQL 15 and cite the source page.What changed in the JSON functions between PostgreSQL 16 and 18?
The version defaults to current. Mention a version in your prompt when you
need behavior from a specific release.
Run locally
Requires Python 3.10+ and uv.
git clone https://github.com/sav-maya/postgres-docs-mcp.git
cd postgres-docs-mcp
uv sync
uv run postgres-docs-mcp
To make Cursor launch the local clone, use an absolute path:
{
"mcpServers": {
"postgres-docs": {
"command": "uv",
"args": [
"--directory",
"/ABSOLUTE/PATH/TO/postgres-docs-mcp",
"run",
"postgres-docs-mcp"
]
}
}
}
The server follows the official
Build an MCP server
guide: Python 3.10+, MCP Python SDK 2.x, typed @mcp.tool() functions,
httpx2, and stdio transport. It never writes logs to stdout; logs go to
stderr so they cannot corrupt MCP JSON-RPC messages.
Troubleshooting
- Server does not appear: Restart Cursor, then check Cursor Settings →
Tools & MCP for an error beside
postgres-docs. uvxis not found: Install uv, or replace"uvx"in the configuration
설치
uvx --from git+https://github.com/sav-maya/postgres-docs-mcp postgres-docs-mcp설정
{
"mcpServers": {
"postgres-docs": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/sav-maya/postgres-docs-mcp",
"postgres-docs-mcp"
]
}
}
}