mcp-polaris-ai-datainsight
Polaris AI DataInsight is an API service that easily converts documents in various formats into structured data (such as JSON).
This tool supports the extraction of text, images, and other elements from various document formats (e.g. .docx, .pptx, .xlsx, .hwp, .hwpx).
For more details, please refer to the documentation.
Features
1. Extract content from document
Extract text, images, and other elements from various document formats.
- Supported document formats : docx, xlsx, pptx, hwpx, hwp
- Supported elements types : text, table, image, chart, shape, header, footer, caption
- Images in the document are stored on local storage, and the corresponding image paths are included in the JSON output.
- Tables are represented in JSON format, as illustrated in this example.
2. List files in allowed directories
List the files in the directory path set in the POLARIS_AI_DATA_INSIGHT_RESOURCES_DIR environment variable (in the case of Docker, the path mounted to /app/readable).
- Used to retrieve file paths to be passed as arguments to the "Extract content from document" Tool.
Installation and Setup
Prerequisites
To use this server, follow these steps:
-
Generate an API key.
- Refer to this guide to generate an API key.
-
Create a writable directory for storing extraction-result resources(e.g. images in files), and set its path in the
POLARIS_AI_DATA_INSIGHT_RESOURCES_DIRenvironment variable.
After that, choose one of the installation methods below and start the server.
Method 1: Manual Configuration
If you prefer a manual setup, add the following configuration to your IDE's MCP config file:
{
"mcpServers": {
"datainsight": {
"command": "uvx",
"args": [
"--no-cache",
"mcp-polaris-ai-datainsight@latest",
"/abs/path/to/input-docs-1",
"/abs/path/to/input-docs-2",
"/abs/path/to/input-docs-3"
],
"env": {
"POLARIS_AI_DATA_INSIGHT_API_KEY": "your-api-key",
"POLARIS_AI_DATA_INSIGHT_RESOURCES_DIR": "/abs/path/to/output/assets"
}
}
}
}
Method 2: Docker Container
- Clone repository
git clone --branch main https://github.com/PolarisOffice/PolarisAIDataInsight.git
If you want to clone onlymcp-polaris-ai-datainsightdirectory:# Git Version >= 2.25 git clone --filter=blob:none --sparse --branch main https://github.com/PolarisOffice/PolarisAIDataInsight.git
cd PolarisAIDataInsight
git sparse-checkout set mcp-polaris-ai-datainsight
- Build Docker image:
cd mcp-polaris-ai-datainsight docker build --no-cache -t mcp-polaris-ai-datainsight .
- Use this MCP Server config:
Note: All readable files must be mounted to
/app/readableby default.{ "mcpServers": { "datainsight": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "POLARIS_AI_DATA_INSIGHT_API_KEY=your-api-key", "--mount", "type=bind,src=/abs/path/to/input-docs-1,dst=/app/readable/dir_1,ro", "--mount", "type=bind,src=/abs/path/to/input-docs-2,dst=/app/readable/dir_2,ro", "mcp-polaris-ai-datainsight" ] } } }
Method 3: Clone git repository
[!] Important: uv and poetry must be pre-installed.
- Clone git repository
- Install python dependencies in virtual environment
cd mcp-polaris-ai-datainsight
uv venv .venv # Linux source .venv/bin/activate # Windows .venv\bin\activate poetry install --no-root
- Set API Key and Resources Directory as environment values and Run server
# Linux export POLARIS_AI_DATA_INSIGHT_API_KEY="your-api-key" export POLARIS_AI_DATA_INSIGHT_RESOURCES_DIR="/abs/path/to/output/assets" # Windows set POLARIS_AI_DATA_INSIGHT_API_KEY="your-api-key" set POLARIS_AI_DATA_INSIGHT_RESOURCES_DIR="/abs/path/to/output/assets"
python -m mcp_polaris_ai_datainsight.server /abs/path/to/input-docs-1 /abs/path/to/input-docs-1 ...
Output
- Refer to this example for a sample output.
- Alternatively, you can test our API using the playground.
Metadata
Release files for mcp-polaris-ai-datainsight 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| mcp_polaris_ai_datainsight-1.0.0.tar.gz | 4.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mcp_polaris_ai_datainsight-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.8 kB
Release files / mcp_polaris_ai_datainsight-1.0.0.tar.gz
| Download URL | mcp_polaris_ai_datainsight-1.0.0.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d51e9024d5108cf0f490101c709270f2b3233ace2888780612ed2d858cd4049c
|
|
BLAKE2b-256 checksum How to use checksums |
8202139cdae3f25e82f4162d258648b6b5195980c71b3acf27e86380bb4b3ed9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.3 CPython/3.11.11 Linux/5.15.153.1-microsoft-standard-WSL2
|
Release files / mcp_polaris_ai_datainsight-1.0.0-py3-none-any.whl
| Download URL | mcp_polaris_ai_datainsight-1.0.0-py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cc8f16fdf4cbfe95060e07b4e38867e1d048a05a143e5fadf0686403809e6afa
|
|
BLAKE2b-256 checksum How to use checksums |
4cf8c074fa1e67d6ff74eb2c1406df9335f707a54ea5636c2bd60625067f497e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.3 CPython/3.11.11 Linux/5.15.153.1-microsoft-standard-WSL2
|
Security for mcp-polaris-ai-datainsight 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.