Skip to main content

Poly MCP Server - Wordit Edutem database reporting tool

Project description

Poly MCP Server

Version: 0.2.0

A Model Context Protocol (MCP) server providing:

  • Wordit Edutem usage statistics export to Excel

Installation

uvx poly-mcp-server@0.2.0

Or install locally:

uv pip install poly-mcp-server

Available Tools

wordit_edutem_usage

Export Wordit Edutem usage statistics to Excel file.

Parameters:

  • start_date (required): Start date in YYYY-MM-DD format (e.g., '2025-09-01')
  • end_date (optional): End date in YYYY-MM-DD format. If omitted, uses the last day of start_date's month
  • campus_name (optional): Campus name filter (e.g., '강남캠퍼스'). If omitted, queries all campuses
  • output_path (optional): Excel file save path (default: ./output)

Example:

{
  "start_date": "2025-09-01",
  "end_date": "2025-09-07",
  "campus_name": "강남캠퍼스",
  "output_path": "./output"
}

Environment Variables

Required for database connection:

  • POSTGRES_HOST: PostgreSQL host (default: localhost)
  • POSTGRES_PORT: PostgreSQL port (default: 5432)
  • POSTGRES_DB: PostgreSQL database name (required)
  • POSTGRES_USER: PostgreSQL username (required)
  • POSTGRES_PASSWORD: PostgreSQL password (required)

MCP Configuration

VSCode Settings

Add to .vscode/settings.json:

{
  "mcp.servers": {
    "poly-mcp": {
      "command": "uvx",
      "args": ["poly-mcp-server@0.2.0"],
      "env": {
        "POSTGRES_HOST": "your-host",
        "POSTGRES_PORT": "5432",
        "POSTGRES_DB": "your-db",
        "POSTGRES_USER": "your-user",
        "POSTGRES_PASSWORD": "your-password"
      }
    }
  }
}

Claude Desktop

Add to claude_desktop_config.json:

Windows

Location: %APPDATA%\Claude\claude_desktop_config.json

macOS

Location: ~/Library/Application Support/Claude/claude_desktop_config.json

Linux

Location: ~/.config/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "poly-mcp": {
      "command": "uvx",
      "args": ["poly-mcp-server@0.2.0"],
      "env": {
        "POSTGRES_HOST": "your-host",
        "POSTGRES_PORT": "5432",
        "POSTGRES_DB": "your-db",
        "POSTGRES_USER": "your-user",
        "POSTGRES_PASSWORD": "your-password"
      }
    }
  }
}

Development

Local Setup

git clone <repository-url>
cd poly-mcp-server

# Install with dev dependencies
uv pip install -e ".[dev]"

Run Tests

# Run all tests
uv run pytest

# Run with verbose output
uv run pytest -v

# Run with coverage
uv run pytest --cov=poly_mcp_server

Run Server

# Using uv
uv run poly-mcp-server

# Or as Python module
uv run python -m poly_mcp_server.server

# Show help
uv run poly-mcp-server --help

License

MIT

Contributing

Bug reports and feature requests are welcome via GitHub Issues.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

poly_mcp_server-0.2.1.tar.gz (236.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

poly_mcp_server-0.2.1-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file poly_mcp_server-0.2.1.tar.gz.

File metadata

  • Download URL: poly_mcp_server-0.2.1.tar.gz
  • Upload date:
  • Size: 236.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.22

File hashes

Hashes for poly_mcp_server-0.2.1.tar.gz
Algorithm Hash digest
SHA256 21d0a13a32c770a64c4ed28dbfcc8deda7878bf67b0e2c28ee631ce8ff197604
MD5 b1df1e68f56b933e4ffb4b9e5c508505
BLAKE2b-256 e0461bbd39e1d2b23bac5f351a3b6399a637495762dda9cb181d3c6ea376d723

See more details on using hashes here.

File details

Details for the file poly_mcp_server-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for poly_mcp_server-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c7909184c09ecf356847ebe66a4d5def8fbbc9bb465305d9088f8fe519307963
MD5 dd823bd3fc35bbef12d3085620e16803
BLAKE2b-256 8d71b4162a5f92fc8fea9e5d7725539cd0b69c07d49315ba811b7d7df6917182

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page