Back to Home
changju784 icon

chi311-mcp-server

by changju784

Overview

Automate the submission of Chicago 311 service requests via web browser automation, exposed as an API for LLM agents.

Installation

Run Command
uvicorn app.main:app --reload --host 0.0.0.0 --port 8000

Environment Variables

  • PORT
  • ENABLE_PLAYWRIGHT_SUBMIT
  • PLAYWRIGHT_HEADLESS
  • CHI311_DRY_RUN
  • CHI311_FULL_SUBMIT
  • CHI311_FORM_URL
  • MCP_API_KEY

Security Notes

The server uses `allow_origins=["*"]` for CORS, which is a significant security risk for public deployment. Critical endpoints like `/mcp/submit_311_request`, `/mcp/tools/fetch`, and `/sse/broadcast` are unauthenticated by default. The `/mcp/tools/fetch` endpoint can expose module source code and JSON schemas publicly. The `submit_311_request` endpoint, if `CHI311_FULL_SUBMIT` is enabled, can trigger actual form submissions without default authentication or rate-limiting, posing a risk of abuse. The README explicitly warns about these risks but the default configuration does not mitigate them.

Similar Servers

Stats

Interest Score0
Security Score3
Cost ClassMedium
Avg Tokens1000
Stars0
Forks1
Last Update2025-12-12

Tags

Chicago 311AutomationPlaywrightLLM IntegrationMCP Server