ServiceNow Cowork Automation API
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
ServiceNow Cowork Automation API
FastAPI + MCP-compatible backend for Microsoft 365 Copilot Cowork ServiceNow incident automation.
What this backend does
Receives ServiceNow new-incident webhooks.
Deduplicates automation jobs.
Queues jobs to Azure Service Bus when enabled.
Exposes controlled
/api/cowork/*APIs for Cowork plugin/MCP use.Exposes a remote MCP-compatible
/mcpJSON-RPC endpoint.Applies backend policy checks before ServiceNow or Microsoft Graph actions.
Searches/classifies ServiceNow KB articles.
Performs eligible Microsoft Entra ID password reset/profile update through Graph.
Writes job, policy, KB, and audit records.
Never returns or logs temporary passwords.
Related MCP server: servicenow-api
Local setup
python -m venv .venv
.\.venv\Scripts\activate
pip install -e ".[dev]"
copy .env.example .env
uvicorn app.main:app --reloadTest
pytest -q
pytest --cov=appRequired environment variables
See .env.example.
For local/dev, keep:
SERVICE_BUS_ENABLED=false
GRAPH_ENABLED=false
DATABASE_URL=sqlite+aiosqlite:///./cowork.dbFor Azure, set DATABASE_URL, ServiceNow credentials, Graph settings, and Service Bus settings in App Service/Function App configuration or Key Vault references.
REST examples
Health:
curl http://localhost:8000/healthWebhook:
curl -X POST http://localhost:8000/api/servicenow/webhook/incidents ^
-H "Content-Type: application/json" ^
-H "x-api-key: local-test-key" ^
-d "{\"sys_id\":\"inc-1\",\"number\":\"INC0010001\",\"state\":\"New\",\"category\":\"access\",\"priority\":\"3\",\"short_description\":\"forgot password\"}"Analyze:
curl -X POST http://localhost:8000/api/cowork/incidents/analyze ^
-H "Content-Type: application/json" ^
-H "x-api-key: local-test-key" ^
-d "{\"incident_sys_id\":\"inc-1\",\"authenticated_user_upn\":\"user@contoso.com\"}"MCP initialize:
curl -X POST http://localhost:8000/mcp ^
-H "Content-Type: application/json" ^
-d "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"initialize\",\"params\":{}}"List MCP tools:
curl -X POST http://localhost:8000/mcp ^
-H "Content-Type: application/json" ^
-d "{\"jsonrpc\":\"2.0\",\"id\":2,\"method\":\"tools/list\",\"params\":{}}"Safety model
Cowork should mainly call:
analyze_incidentrun_incident_automationget_automation_job_status
The backend remains the final trust boundary for identity, policy, VIP/admin/security exclusions, KB safety classification, and Graph actions.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
An MCP server that provides an API to LLMs to manage their JumpCloud resources.
Build and run AI workflows, agents, data tables and 1000+ API integrations from any MCP client.
MCP server unifying ERPs, CRMs, APIs and knowledge base for Claude, ChatGPT and Gemini.
AI-powered incident management and server monitoring via MCP.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables natural language interaction with ServiceNow instances for managing incidents, changes, CMDB, service catalog, users, groups, and knowledge base via MCP.4149 npm1MIT
- AlicenseCqualityBmaintenanceMCP server enabling interaction with ServiceNow API for managing incidents, CMDB, change management, and other ServiceNow operations via natural language.13320MIT
- AlicenseBqualityBmaintenanceEnables natural language control of ServiceNow from AI clients like Claude and Cursor. Provides 400+ tools for incidents, changes, CMDB, and scripts via MCP protocol.500182 npm2MIT
- AlicenseAqualityDmaintenanceA production-ready MCP server that turns any MCP-compatible AI assistant into an AI-powered ServiceNow Incident Management Assistant, exposing incidents, users, CMDB records, and knowledge articles through validated tools.12MIT