
hottechstack/polars-docs-mcp
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
Polars API 문서를 검색하고 검색하는 FastMCP 도구입니다.
개요
여러 전송 방법을 지원하는 Polars API 문서를 검색하고 검색하는 FastMCP 도구. - 자동으로 Polars 공공 부품 (클래스, 기능, 하위 모듈)를 발견합니다. - 구성 요소 또는 쿼리 문자열로 Polars API 검색. - 현재 Polars 버전 및 패키지 정보를 가져옵니다. - API 서명 및 설명으로 구성된 JSON을 반환합니다. - 다중 전송 방법 지원 : STDIO, Streamable HTTP 및 SSE. - 원활한 LLM 전원 워크플로우에 대한 mcp와 통합. Python의 내장형 인트로픽션을 활용하여 모든 퍼블릭 클래스, 기능 및 서브 모듈을 런타임에 반영하여 비용, 부화, 유지 보수 부담을 제거하거나 외부 문서 데이터베이스를 관리합니다.
개요(AI 번역)
여러 전송 방법을 지원하는 Polars API 문서를 검색하고 검색하는 FastMCP 도구.
특징
- 자동으로 Polars 공공 부품 (클래스, 기능, 하위 모듈)를 발견합니다.
- 구성 요소 또는 쿼리 문자열로 Polars API 검색.
- 현재 Polars 버전 및 패키지 정보를 가져옵니다.
- API 서명 및 설명으로 구성된 JSON을 반환합니다.
- 여러 운송 방법 지원 : STDIO, Streamable HTTP 및 SSE.
- 원활한 LLM 전원 워크플로우를 위한
mcp과 통합합니다.
런타임에 Polars의 모든 공공 클래스, 기능 및 하위 모듈을 반영하기 위해 Python의 내장 강도를 활용하여 비용, 부기성 및 웹 스크램핑의 유지 부담을 제거하거나 외부 문서 데이터베이스를 관리합니다. 이 접근법은 모든 라이브러리 릴리스를 통해 100 %의 최신 정확도를 보장하며 복잡한 텍스트 청소 또는 내장 파이프라인을 필요로하며, 단순하고 실시간 API 검색을 위해 훨씬 더 효율적 인 검색의 무거운 인프라 오버 헤드를 방지합니다.
사용법
##1. Claude Desktop Config (추천)
2. 운송 옵션과 수동 실행
STDIO (기본값 - Claude 데스크톱용 베스트)
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
Polars Docs MCP
A FastMCP tool to search and retrieve Polars API documentation with support for multiple transport methods.
Features
- Automatically discover Polars public components (classes, functions, submodules).
- Search Polars API by component or query string.
- Get current Polars version and package information.
- Returns structured JSON with API signatures and descriptions.
- Support for multiple transport methods: STDIO, Streamable HTTP, and SSE.
- Integrates with
mcpfor seamless LLM-powered workflows.
By leveraging Python’s built‑in introspection to reflectively discover every public class, function, and submodule in Polars at runtime, I eliminate the cost, fragility, and maintenance burden of web‑scraping or managing an external documentation database. This approach guarantees 100% up‑to‑date accuracy with every library release, requires no complex text cleaning or embedding pipelines, and avoids the heavy infrastructure overhead of semantic search—making it both simpler and far more efficient for real‑time API lookup.
Usage
1. Claude Desktop Config (Recommended)
{
"mcpServers": {
"polarsapifinder": {
"command": "uv",
"args": [
"--directory",
"/PATH/TO/polars-docs-mcp",
"run",
"polarsdocsfinder.py"
]
}
}
}
2. Manual Execution with Transport Options
STDIO (Default - Best for Claude Desktop)
python polarsdocsfinder.py
# or explicitly:
python polarsdocsfinder.py --transport stdio
Streamable HTTP (Best for Web Deployments)
python polarsdocsfinder.py --transport streamable-http
# With custom settings:
python polarsdocsfinder.py --transport streamable-http --host 0.0.0.0 --port 8080 --path /api/mcp
SSE (For Legacy Client Compatibility)
python polarsdocsfinder.py --transport sse
# With custom settings:
python polarsdocsfinder.py --transport sse --host 0.0.0.0 --port 9000
Command Line Arguments
--transport: Choose transport method (stdio,streamable-http,sse) - Default:stdio--host: Host address for HTTP/SSE transports - Default:127.0.0.1--port: Port number for HTTP/SSE transports - Default:8111--path: URL path for streamable-http transport - Default:/mcp
3. Visual Testing of MCP Server
npx @modelcontextprotocol/inspector uv run polarsdocsfinder.py
Requires Python 3.11+.
Tool Endpoints
get_polars_version(): Get current Polars version and package information.list_polars_components(): List all high-level Polars API components.search_polars_docs(api_refs: list[str] | None, query: str | None, max_results: int = 1000): Search and retrieve API signatures.verify_polars_api(api_ref: str): Verify if a Polars API reference is valid.
설치
npx @modelcontextprotocol/inspector uv run polarsdocsfinder.py설정
{
"mcpServers": {
"polarsapifinder": {
"command": "uv",
"args": [
"--directory",
"/PATH/TO/polars-docs-mcp",
"run",
"polarsdocsfinder.py"
]
}
}
}