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.0.tar.gz (236.7 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.0-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for poly_mcp_server-0.2.0.tar.gz
Algorithm Hash digest
SHA256 0da8995ba19938c1648a0a328c345cb62cae9677adefbc9be20c9115d1e6d403
MD5 26a1c37f3e54d997ff31ab83c68e7b43
BLAKE2b-256 0bd786b91f0f0444e3c43c00d8590cd692d6bb1b19862b3f6e69a778438d1e94

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for poly_mcp_server-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a86eff94a963d72b73d0a97b2f368aa9b598896aada7f9a775dc926f041c3110
MD5 aff2236b0ba3c17ac6e51f75a05dec1b
BLAKE2b-256 0ad9b9fd95ef15c7ccf5e74a215502f2dbe85d284f4898f72af472d606f45020

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