How jschuller/mcp-server-servicenow works
This is an MCP server that exposes ServiceNow data and operations to AI clients. The main workflow is an MCP tool or resource request, middleware checks and audits it, and the server makes authenticated ServiceNow API requests; results return through MCP. The graph preserves the documented table, CMDB, system/schema, update-set, and resource capabilities, plus authentication, diagnostics, and skill tooling. Some links rely on README or SOURCE INDEX references because several implementations were not excerpted.
Main entry points: server.py MCP server · system_tools.py System and schema · http.py HTTP requests · resources.py Resources
Components 21
MCP interface
- MCP server
src/servicenow_mcp/server.py - Resources
src/servicenow_mcp/resources.py
ServiceNow capabilities
- Table operations
src/servicenow_mcp/tools/table_tools.py - CMDB tools
src/servicenow_mcp/tools/cmdb_tools.py - System and schema
src/servicenow_mcp/tools/system_tools.py - Update sets
src/servicenow_mcp/tools/update_set_tools.py - Schema lookup
src/servicenow_mcp/utils/schema.py
Security and transport
- Authentication
src/servicenow_mcp/auth/auth_manager.py - OAuth proxy
src/servicenow_mcp/auth/sn_oauth_provider.py - Token verifier
src/servicenow_mcp/auth/sn_token_verifier.py - Policy checks
src/servicenow_mcp/middleware/policy.py - Read-only identity
src/servicenow_mcp/middleware/read_only_identity.py - Audit logging
src/servicenow_mcp/middleware/audit.py - Configuration
src/servicenow_mcp/utils/config.py - HTTP requests
src/servicenow_mcp/utils/http.py - Caller identity
src/servicenow_mcp/utils/user.py
Skill and operations
- Connection checks
src/servicenow_mcp/doctor.py - Skill validation
src/servicenow_mcp/skill_lint.py - Evaluation kit
src/servicenow_mcp/eval_kit.py
Other components
- MCP client
- ServiceNow instance
Connections 23
- MCP client → MCP server: sends requests
README.md - MCP server → MCP client: returns results
README.md - MCP server → Policy checks: checks calls
src/servicenow_mcp/server.py - MCP server → Read-only identity: filters writes
src/servicenow_mcp/server.py - MCP server → Audit logging: records calls
src/servicenow_mcp/server.py - Table operations → MCP server: registers tools
src/servicenow_mcp/tools/table_tools.py - CMDB tools → MCP server: registers tools
src/servicenow_mcp/tools/cmdb_tools.py - System and schema → MCP server: registers tools
src/servicenow_mcp/tools/system_tools.py - Update sets → MCP server: registers tools
src/servicenow_mcp/tools/update_set_tools.py - Resources → MCP server: registers resources
src/servicenow_mcp/resources.py - MCP server → HTTP requests: dispatches requests
src/servicenow_mcp/server.py - HTTP requests → ServiceNow instance: reads and writes
README.md - MCP server → Authentication: uses credentials
src/servicenow_mcp/server.py - Authentication → Configuration: reads settings
src/servicenow_mcp/auth/auth_manager.py - OAuth proxy → Token verifier: verifies tokens
src/servicenow_mcp/auth/sn_oauth_provider.py - Resources → Schema lookup: fetches schema
src/servicenow_mcp/resources.py - System and schema → Schema lookup: fetches schema
src/servicenow_mcp/tools/system_tools.py - System and schema → Caller identity: fetches identity
src/servicenow_mcp/tools/system_tools.py - Update sets → Caller identity: looks up caller
src/servicenow_mcp/resources.py - Connection checks → HTTP requests: checks connection
src/servicenow_mcp/doctor.py - Connection checks → Configuration: loads settings
src/servicenow_mcp/doctor.py - Evaluation kit → Policy checks: checks policies
src/servicenow_mcp/eval_kit.py - Evaluation kit → Skill validation: validates skills
src/servicenow_mcp/eval_kit.py