Polars Docs MCP
Provides tools to search and retrieve Polars API documentation, list components, verify API references, and get version information.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Polars Docs MCP search Polars pl.col"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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.
Related MCP server: FastMCP MCP Server
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 stdioStreamable 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/mcpSSE (For Legacy Client Compatibility)
python polarsdocsfinder.py --transport sse
# With custom settings:
python polarsdocsfinder.py --transport sse --host 0.0.0.0 --port 9000Command 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.list_all_modern_data_stacks(): List modern data stacks compatible with Polars.
Transport Methods
STDIO (Default)
Best for: Claude Desktop, local tools, command-line scripts
Usage: Direct integration with Claude Desktop configuration
Communication: Standard input/output streams
Streamable HTTP
Best for: Web deployments, REST API integration, browser-based clients
Usage: Run as HTTP service, connect via HTTP requests
Communication: HTTP POST requests to the specified endpoint
SSE (Server-Sent Events)
Best for: Compatibility with existing SSE clients, real-time streaming
Usage: Legacy system integration
Communication: Server-sent events over HTTP
Examples Snapshots


Testing HTTP Transport
If running with HTTP transport, you can test the server:
# Start server
python polarsdocsfinder.py --transport streamable-http --port 8111
# Test with curl
curl -X POST http://127.0.0.1:8111/mcp \
-H "Content-Type: application/json" \
-d '{"method": "tools/list"}'License
This project is licensed under the MIT License. See the LICENSE file for details.
Contact
Created by ABC. Report issues or request features at https://github.com/HotTechStack/polars-docs-mcp/issues.
Available Tools
6 toolsdebug_polars_componentsA
Debug tool to show what components are discovered and their types
Inputs: no named parameters.
get_polars_versionA
Get the currently installed Polars version information
Inputs: no named parameters.
list_all_modern_data_stacksB
List all modern data stacks that can be used with Polars.
Inputs: no named parameters.
list_polars_componentsA
List all available high‑level Polars API components
Inputs: no named parameters.
search_polars_apiA
Search Polars API methods and documentation. Finds exact matches first, then falls back to fuzzy search.
Inputs: components, methods, max_results, debug.
verify_polars_apiB
Verify if a given Polars API name or signature is valid.
Inputs: api_ref (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
All six tools have clearly distinct purposes: version info, component listing, debugging components, searching API, verifying API, and listing compatible data stacks. No overlapping functionality that would cause confusion.
All tool names follow a consistent verb_noun pattern in snake_case (e.g., list_polars_components, search_polars_api). No mixing of conventions or inconsistent verb styles.
Six tools is well-scoped for a documentation-focused MCP server. Each tool addresses a distinct need (version, components, search, verification, etc.) without being too few or too many.
The surface covers the main documentation tasks: version checking, component listing, API search, verification, and debugging. A minor gap might be a specific function for fetching detailed documentation for a single API method, but search_polars_api likely covers that.
Maintenance
Related MCP Connectors
MCP server for querying Forkast documentation
Political Comms documentation MCP server: search docs, query the docs filesystem. No auth.
Search and manage your team's knowledge from MCP clients.
Search and read the aicoolies catalog of AI and developer tools via a remote MCP knowledge graph.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to fetch, index, and perform semantic RAG-based searches on API documentation from various sources. It provides tools for hybrid search and collection management, allowing users to access up-to-date documentation from projects like Gemini and FastMCP.-
- FlicenseAqualityDmaintenanceA Model Context Protocol (MCP) server built with FastMCP that provides tools for web scraping and documentation searching.3-
- FlicenseNot gradedqualityCmaintenanceLocal documentation search server for AI models using hybrid retrieval (phrase, keyword, vector). Provides MCP tools to search and fetch documentation from bundled or custom doc sets without any external API keys.-
- AlicenseAqualityDmaintenanceFastMCP server that lets agents search and fetch IBM i documentation via IBM Documentation's public APIs.2MIT