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.3.tar.gz (302.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.3-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for poly_mcp_server-0.2.3.tar.gz
Algorithm Hash digest
SHA256 fd5d54716bda250922564d0678fdb4e42b35af6edc9ee9cc5f3dfeb8a741982a
MD5 61f257cf7000b3af9fb2c71f11027f9e
BLAKE2b-256 773dba7243c82c3471df4f4dc399434d0f4b59a43c09b8a5527ff0603ff6e6c4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for poly_mcp_server-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 41333b549fae549bfc2fb075cdf576b5ac3cd04323814143e5ddeac76542453f
MD5 ad395f73e2914d0082dae3a0a24a87e6
BLAKE2b-256 88bce1a22f1df9e3c0276d6830eaab520e1278376a7940a42dbb4a07116ea9d0

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