Overview
The Model Context Protocol (MCP) is an open standard that enables AI tools and applications to connect with GovWorx data and services in a secure, standardized way. With the GovWorx MCP server, you can use AI assistants like Claude, Cursor, or other MCP-compatible tools to search events, browse media, query incidents, and access your knowledge base.How MCP Works
MCP provides a structured way for AI tools to interact with GovWorx:- Connect - Your AI tool connects to the GovWorx MCP server endpoint
- Authenticate - The connection is authenticated using your GovWorx API token
- Access - The AI tool can now search and retrieve your GovWorx data using the available tools
Authentication
The GovWorx MCP server uses Bearer token authentication. You’ll need a GovWorx API token, which can be created in the GovWorx application under Settings > API Tokens.Required Headers
Audit Logging
All MCP requests are logged for security and compliance purposes. The audit logs capture:- Token identity - Which API token was used (token name, tenant)
- User context - The user ID associated with the request (from
X-GW-User-Idheader) - Action performed - Which tool was called and with what parameters
- Resources accessed - Which events, media, incidents, or documents were retrieved
- Timestamp - When the request occurred
Best Practice: Always include the
X-GW-User-Id header with the GovWorx user ID of the person using the AI tool. This ensures accurate audit trails and allows administrators to track which users are accessing data through MCP integrations.X-GW-User-Id is not provided, requests will still be logged but will only show the API token identity, not the specific end user.
Example Connection
Token Permissions
Your API token must have the appropriate permissions to use each tool:Available Tools
The GovWorx MCP server exposes the following tools for AI assistants to use:searchEvents
Search for events (calls, incidents, transmissions) in your GovWorx data. Parameters:
Criteria Fields:
Example:
searchMedia
Search for media records (call audio, radio transmissions) in your GovWorx data. Parameters:
Criteria Fields:
Example:
searchIncidents
Search for CAD incidents in your GovWorx data. Parameters:
Criteria Fields:
searchKnowledge
Search your knowledge base documents (policies, procedures, protocols). Parameters:
Criteria Fields:
Example:
fetchGwResource
Fetch detailed information for specific GovWorx resources by their URI. Supports batch fetching up to 50 resources at once. Parameters:
Supported URI Formats:
Example:
echo
Simple test tool to verify MCP connectivity. Parameters:checkHealth
Check the health status of the MCP server’s connection to backend services. Parameters: None Response:Client Configuration
Claude Desktop
Add the following to your Claude Desktop configuration file:- macOS
- Windows
Edit
~/Library/Application Support/Claude/claude_desktop_config.json:Cursor
Configure MCP in Cursor settings under Settings > MCP Servers:MCP Inspector (Testing)
Use the MCP Inspector to test your connection:https://mcp.govworx.net/sse with your Authorization header.
Troubleshooting
Common Issues
401 Unauthorized- Verify your API token is valid and not expired
- Ensure the
Authorizationheader format isBearer <token>(with a space) - Check that your token has the required permissions
- Your token may lack the required permissions for the requested tool
- Contact your administrator to update token permissions
- The MCP server endpoint may be unreachable from your network
- Check your firewall settings allow outbound connections to
mcp.govworx.net
Verify Token
Test your token with a simple curl command:Data Security
- All connections use TLS encryption and operate under FIPS 140-2 validation
- API tokens are validated against the GovWorx authentication service on every request
- Tenant isolation is enforced - you can only access data within your organization
- All data access is logged for audit purposes
- Resource caching uses security-aware keys that include your tenant and user context

