A Model Context Protocol (MCP) server for the SafetyCulture API. This project allows users to ask natural language questions about their SafetyCulture data after providing an API key.
pip install -r requirements.txt
example.env
to .env
and configure your SafetyCulture API keyrun_server.bat
- Run the server with configuration from .env filerun_with_key.bat YOUR_API_KEY
- Run the server with the provided API keyTo test if your SafetyCulture API key works properly:
test_api.bat YOUR_API_KEY
Additional testing options:
test_api.bat
- Run tests in interactive mode (prompts for API key)test_api.bat feed YOUR_API_KEY
- Test just the Feed APItest_api.bat url
- Check which API URLs are accessible without authentication~/Library/Application Support/Claude/claude_desktop_config.json
(Mac) or %APPDATA%\Claude\claude_desktop_config.json
(Windows){
"mcpServers": {
"safetyculture": {
"command": "python",
"args": [
"/path/to/your/project/src/main.py"
]
}
}
}
authenticate
: Authenticate with the SafetyCulture API using your API keyget_inspections
: Get SafetyCulture inspections for a specific time periodget_inspection_trends
: Analyze trends in SafetyCulture inspections over timecompare_injury_reports
: Compare injury reports between two time periodsget_actions
: Get SafetyCulture actions for a specific time period
get_action_details
: Get detailed information about a specific action by IDThis MCP server uses the SafetyCulture Feed API, which provides a simple way to access collections of resources:
/feed/inspections
: For listing inspections with various filter parameters/feed/actions
: For listing actions with various filter parametersThe Feed API is preferred over the individual resource endpoints when you need to list multiple items.
.
├── README.md
├── requirements.txt
├── example.env
└── src/
├── main.py # Main entry point
├── safetyculture_api/ # SafetyCulture API client
│ ├── __init__.py
│ └── client.py # API client implementation
├── tools/ # MCP tools
│ ├── __init__.py
│ └── inspection_tools.py # Inspection and action tools
└── utils/ # Utility modules
├── __init__.py
├── analysis.py # Data analysis utilities
├── config.py # Configuration management
└── date_utils.py # Date parsing utilities
{
"mcpServers": {
"safetyculture": {
"env": {},
"args": [
"/path/to/your/project/src/main.py"
],
"command": "python"
}
}
}
Seamless access to top MCP servers powering the future of AI integration.