Skip to main content
Glama

bias-detection-mcp MCP server MCP Registry PyPI

bias-detection-mcp MCP server

GitHub stars

偏见检测 Mcp

唯一用于 AI 偏见检测和公平性评估的 MCP 服务器。

npm version License: MIT MEOK AI Labs

安装 · 文档 · 报告 Bug


安装

pip install bias-detection-mcp
# or
npm install -g @meok-ai/bias-detection-mcp

Related MCP server: ISO 42001 AI MCP

快速开始

请参阅项目仓库以获取完整文档和示例。

企业支持

许可证

MIT © CSOAI

Available Tools

5 tools
detect_biasA

Analyze text for demographic bias patterns, stereotyping, and unfair language.

Args: model_output: The AI-generated text to analyze for bias. protected_attributes: Comma-separated list of attributes to check (e.g. "race,gender,age"). Leave empty for auto-detection. api_key: Optional MEOK API key for pro tier.

Behavior: This tool generates structured output without modifying external systems. Output is deterministic for identical inputs. No side effects. Free tier: 10/day rate limit. Pro tier: unlimited. No authentication required for basic usage.

When to use: Use this tool when you need to assess, audit, or verify compliance requirements. Ideal for gap analysis, readiness checks, and generating compliance documentation.

When NOT to use: Do not use as a substitute for qualified legal counsel. This tool provides technical compliance guidance, not legal advice.

Inputs: model_output (required), protected_attributes, api_key.

fairness_metricsA

Calculate fairness metrics from prediction data. Input format: comma-separated values with group labels.

Provide predictions as 'group:prediction' pairs separated by commas. Example: "male:1,female:0,male:1,female:1,male:0,female:0"

If ground_truth is provided, use same format for actual outcomes to compute equalized odds and calibration metrics.

Args: predictions: Comma-separated group:prediction pairs (e.g. "male:1,female:0,male:1"). ground_truth: Optional comma-separated group:actual pairs for outcome-based metrics. api_key: Optional MEOK API key for pro tier.

Behavior: This tool is read-only and stateless — it produces analysis output without modifying any external systems, databases, or files. Safe to call repeatedly with identical inputs (idempotent). Free tier: 10/day rate limit. Pro tier: unlimited. No authentication required for basic usage.

When to use: Use this tool when you need to assess, audit, or verify compliance requirements. Ideal for gap analysis, readiness checks, and generating compliance documentation.

When NOT to use: Do not use as a substitute for qualified legal counsel. This tool provides technical compliance guidance, not legal advice.

Inputs: predictions (required), ground_truth, api_key.

mitigation_recommendationsA

Get detailed remediation steps for a specific type of AI bias.

Args: bias_type: Type of bias to get recommendations for. Options: selection, measurement, confirmation, automation, aggregation, representation, evaluation, historical. api_key: Optional MEOK API key for pro tier.

Behavior: This tool is read-only and stateless — it produces analysis output without modifying any external systems, databases, or files. Safe to call repeatedly with identical inputs (idempotent). Free tier: 10/day rate limit. Pro tier: unlimited. No authentication required for basic usage.

When to use: Use this tool when you need to assess, audit, or verify compliance requirements. Ideal for gap analysis, readiness checks, and generating compliance documentation.

When NOT to use: Do not use as a substitute for qualified legal counsel. This tool provides technical compliance guidance, not legal advice. Behavioral Transparency: - Side Effects: This tool is read-only and produces no side effects. It does not modify any external state, databases, or files. All output is computed in-memory and returned directly to the caller. - Authentication: No authentication required for basic usage. Pro/Enterprise tiers require a valid MEOK API key passed via the MEOK_API_KEY environment variable. - Rate Limits: Free tier: 10 calls/day. Pro tier: unlimited. Rate limit headers are included in responses (X-RateLimit-Remaining, X-RateLimit-Reset). - Error Handling: Returns structured error objects with 'error' key on failure. Never raises unhandled exceptions. Invalid inputs return descriptive validation errors. - Idempotency: Fully idempotent — calling with the same inputs always produces the same output. Safe to retry on timeout or transient failure. - Data Privacy: No input data is stored, logged, or transmitted to external services. All processing happens locally within the MCP server process.

Inputs: bias_type (required), api_key.

quick_scanA

Describe an AI system in one sentence -> instant bias risk assessment. No API key required.

Behavior: This tool is read-only and stateless — it produces analysis output without modifying any external systems, databases, or files. Safe to call repeatedly with identical inputs (idempotent). Free tier: 10/day rate limit. Pro tier: unlimited. No authentication required for basic usage.

When to use: Use this tool when you need to assess, audit, or verify compliance requirements. Ideal for gap analysis, readiness checks, and generating compliance documentation.

When NOT to use: Do not use as a substitute for qualified legal counsel. This tool provides technical compliance guidance, not legal advice. Behavioral Transparency: - Side Effects: This tool is read-only and produces no side effects. It does not modify any external state, databases, or files. All output is computed in-memory and returned directly to the caller. - Authentication: No authentication required for basic usage. Pro/Enterprise tiers require a valid MEOK API key passed via the MEOK_API_KEY environment variable. - Rate Limits: Free tier: 10 calls/day. Pro tier: unlimited. Rate limit headers are included in responses (X-RateLimit-Remaining, X-RateLimit-Reset). - Error Handling: Returns structured error objects with 'error' key on failure. Never raises unhandled exceptions. Invalid inputs return descriptive validation errors. - Idempotency: Fully idempotent — calling with the same inputs always produces the same output. Safe to retry on timeout or transient failure. - Data Privacy: No input data is stored, logged, or transmitted to external services. All processing happens locally within the MCP server process.

Inputs: description (required).

regulatory_checkA

Check bias requirements against EU AI Act Article 10 and NIST AI RMF MAP requirements.

Args: jurisdiction: Jurisdiction to check against. Options: eu, us_nist, uk, all. api_key: Optional MEOK API key for pro tier.

Behavior: This tool is read-only and stateless — it produces analysis output without modifying any external systems, databases, or files. Safe to call repeatedly with identical inputs (idempotent). Free tier: 10/day rate limit. Pro tier: unlimited. No authentication required for basic usage.

When to use: Use this tool when you need to assess, audit, or verify compliance requirements. Ideal for gap analysis, readiness checks, and generating compliance documentation.

When NOT to use: Do not use as a substitute for qualified legal counsel. This tool provides technical compliance guidance, not legal advice. Behavioral Transparency: - Side Effects: This tool is read-only and produces no side effects. It does not modify any external state, databases, or files. All output is computed in-memory and returned directly to the caller. - Authentication: No authentication required for basic usage. Pro/Enterprise tiers require a valid MEOK API key passed via the MEOK_API_KEY environment variable. - Rate Limits: Free tier: 10 calls/day. Pro tier: unlimited. Rate limit headers are included in responses (X-RateLimit-Remaining, X-RateLimit-Reset). - Error Handling: Returns structured error objects with 'error' key on failure. Never raises unhandled exceptions. Invalid inputs return descriptive validation errors. - Idempotency: Fully idempotent — calling with the same inputs always produces the same output. Safe to retry on timeout or transient failure. - Data Privacy: No input data is stored, logged, or transmitted to external services. All processing happens locally within the MCP server process.

Inputs: jurisdiction, api_key.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.2/5.0

    Scored across 5 tools

    Disambiguation5/5

    Each tool has a distinct purpose: detect_bias for text analysis, fairness_metrics for prediction data, mitigation_recommendations for remediation steps, quick_scan for instant assessment, and regulatory_check for compliance. No overlap; agents can easily differentiate.

    Naming Consistency4/5

    All names use snake_case and follow a descriptive prefix + noun pattern. However, detect_bias uses a verb (detect) while others use adjectives (fairness, mitigation, quick, regulatory), creating a minor inconsistency.

    Tool Count5/5

    With 5 tools covering analysis, metrics, recommendations, quick assessment, and regulatory checks, the set is well-scoped and manageable, neither too sparse nor too heavy for the domain.

    Completeness4/5

    The tools cover core bias detection workflows: text analysis, tabular metrics, remediation, and regulatory checks. Missing are features like reporting or multi-modal support, but these are not critical for the stated purpose.

    Maintenance

    ActivityMaintained
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers