MCP cover image
See in Github
2025-03-07

1

Github Watches

1

Github Forks

0

Github Stars

SafetyCulture MCP Server

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.

Features

  • Query SafetyCulture data using natural language
  • Analyze inspection data and trends
  • Compare safety metrics across time periods and categories
  • Visualize inspection trends over time

Setup

  1. Clone this repository
  2. Install dependencies: pip install -r requirements.txt
  3. Copy example.env to .env and configure your SafetyCulture API key
  4. Run the server using one of these methods:
    • run_server.bat - Run the server with configuration from .env file
    • run_with_key.bat YOUR_API_KEY - Run the server with the provided API key

Testing the API

To 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 API
  • test_api.bat url - Check which API URLs are accessible without authentication

Usage with Claude for Desktop

  1. Install Claude for Desktop
  2. Configure Claude for Desktop to use this MCP server by editing the configuration file at ~/Library/Application Support/Claude/claude_desktop_config.json (Mac) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
  3. Add the following configuration:
{
    "mcpServers": {
        "safetyculture": {
            "command": "python",
            "args": [
                "/path/to/your/project/src/main.py"
            ]
        }
    }
}
  1. Restart Claude for Desktop
  2. Use the MCP tools to query your SafetyCulture data with questions like:
    • "How many inspections were done in this site over the last 3 months?"
    • "Compare any trends in rise of injuries report for this category"

Available Tools

Authentication

  • authenticate: Authenticate with the SafetyCulture API using your API key

Inspection Data (Using Feed API)

  • get_inspections: Get SafetyCulture inspections for a specific time period
  • get_inspection_trends: Analyze trends in SafetyCulture inspections over time
  • compare_injury_reports: Compare injury reports between two time periods

Action Data (Using Feed API)

  • get_actions: Get SafetyCulture actions for a specific time period
    • Filter by status (e.g., 'in_progress', 'completed', 'overdue')
    • Filter by priority (e.g., 'low', 'medium', 'high')
    • View detailed information about each action
  • get_action_details: Get detailed information about a specific action by ID

About the Feed API

This 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 parameters

The Feed API is preferred over the individual resource endpoints when you need to list multiple items.

Development

Project Structure

.
├── 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

Development Log

Initial Setup

  • Created project structure
  • Set up git repository
  • Added README and requirements
  • Implemented SafetyCulture API client
  • Added MCP tools for querying inspection data
  • Added utility modules for date parsing and data analysis
  • Added configuration management

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • apappascs
  • Descubra la colección más completa y actualizada de servidores MCP en el mercado. Este repositorio sirve como un centro centralizado, que ofrece un extenso catálogo de servidores MCP de código abierto y propietarios, completos con características, enlaces de documentación y colaboradores.

  • ShrimpingIt
  • Manipulación basada en Micrypthon I2C del expansor GPIO de la serie MCP, derivada de AdaFruit_MCP230xx

  • OffchainLabs
  • Implementación de la prueba de estaca Ethereum

  • modelcontextprotocol
  • Servidores de protocolo de contexto modelo

  • huahuayu
  • Una puerta de enlace de API unificada para integrar múltiples API de explorador de blockchain similar a Esterscan con soporte de protocolo de contexto modelo (MCP) para asistentes de IA.

  • Mintplex-Labs
  • La aplicación AI de escritorio todo en uno y Docker con trapo incorporado, agentes de IA, creador de agentes sin código, compatibilidad de MCP y más.

    Reviews

    5 (1)
    Avatar
    user_vIDmj0qV
    2025-04-15

    The Remote MCP Server on Cloudflare by SunwangX is an exceptional solution for managing my projects remotely. It's both reliable and secure, leveraging Cloudflare's infrastructure to ensure data safety and fast access. The seamless experience it provides has truly enhanced my productivity. Whether you are an individual or a team, this is a must-have tool. Highly recommended! Check it out at https://mcp.so/server/remote-mcp-server/SunwangX.