跳到正文
FunCoding

FairMind

官方 MCP Registry 已收录

Release gate for AI systems from FairMind: evaluations, framework evidence and ledger snapshots.

Star
18
版本
v0.5.0a0
许可证
AGPL-3.0
最近提交
2026年11月30日

fairmind-mcp

An MCP server that lets a coding agent ask FairMind whether an AI system may ship, and run fairness tests on CSVs from your machine, record findings and remediation tasks, and build inspection packs. It is a thin layer over the fairmind Python SDK and talks to the server over stdio.

Tools

ToolWhat it does
list_systemsAI systems your key can see, with id, risk tier and lifecycle stage
get_systemOne AI system: name, owner, risk tier, lifecycle stage and metadata
register_systemRegisters an AI system (optionally in a given workspace) with the risk tier the user states
release_gateVerdict (go, conditional_go, no_go), confidence, the five checks and the reasons
clause_mapThe gate read per regulatory clause; optional frameworks such as EUAIA, ISO42001
run_fairness_testUploads a local CSV, stores the measured result as evidence, returns metrics and the new gate
record_monitoring_snapshotCompares recent decisions in a local CSV with the latest fairness run (drift, impact ratio, PSI)
attest_checkRecords a person's statement that data_governance, human_oversight, monitoring or environmental is satisfied
list_evaluationsSearches the evaluation catalogue (drift, leakage, prompt injection, jailbreaks, counterfactual flip rate, agent configuration and more) and says which FairMind can run
describe_evaluationThe files and params an evaluation takes, and whether it also runs as a behaviour test against the live system
run_evaluationRuns an evaluation on local files, against the live system (live) or on the connected agent platform (use_connection); stores the result as measured evidence
create_evidence_packBuilds a hashed inspection pack of chosen systems' evidence and clause maps; share also mints a read-only auditor token
verify_evidence_packRecomputes a pack's manifest hash and each system's evidence chain head, from a local pack.json, an auditor link or a pack id
record_findingRecords a risk finding (type, severity, description) against a system
list_findingsRecorded findings with counts by severity, and a system's remediation tasks
create_remediation_taskOpens a remediation task for a system, optionally tied to a finding
update_remediation_taskMoves a remediation task to a new status and/or adds notes
request_release_approvalAsks for a release decision, or reads where the latest request stands; a person approves or rejects it in FairMind, not this server
generate_reportGenerates and stores a compliance, bias or governance report snapshot for a system and lists earlier ones

Each tool returns a compact text summary and the full API response as structured content. run_evaluation waits for behaviour tests, which run as background jobs and can take minutes. The evaluation tools act in the key's first organisation; set FAIRMIND_ORG_ID to pick another. API failures come back as tool errors carrying the HTTP status and the server's message. attest_check writes manual evidence, and record_finding writes a finding, so the tools tell the agent to use only statements and observations that are real.

Install

pip install fairmind-mcp        # or run it without installing: uvx fairmind-mcp

It is listed in the official MCP Registry as io.github.adhit-r/fairmind. To work on it from a checkout, run uv sync in apps/mcp (the SDK is resolved from ../sdk).

The server targets the mcp 1.x FastMCP API (mcp>=1.10,<2); in mcp 2.x it was renamed MCPServer.

Configure

Create a key once with POST /api/v1/auth/api-keys, export it, and let the client pass it through. The config below never contains the key itself.

export FAIRMIND_API_URL=https://fairmind.example.com
export FAIRMIND_API_KEY=...

Claude Code

claude mcp add fairmind -- uvx fairmind-mcp

The server inherits FAIRMIND_API_URL and FAIRMIND_API_KEY from the shell that starts Claude Code. To scope it to a repository, commit a .mcp.json that expands the variables from each developer's environment:

{
  "mcpServers": {
    "fairmind": {
      "command": "uvx",
      "args": ["fairmind-mcp"],
      "env": {
        "FAIRMIND_API_URL": "${FAIRMIND_API_URL}",
        "FAIRMIND_API_KEY": "${FAIRMIND_API_KEY}"
      }
    }
  }
}

Claude Desktop

Desktop does not expand variables, so launch through a shell that reads them from your environment. In claude_desktop_config.json:

{
  "mcpServers": {
    "fairmind": {
      "command": "/bin/sh",
      "args": ["-c", "exec uvx fairmind-mcp"]
    }
  }
}

Set FAIRMIND_API_URL and FAIRMIND_API_KEY in the environment that starts Claude Desktop (for example with launchctl setenv on macOS), or keep them in a file outside the repository that you source in the -c command.

Try it

Ask the agent: "May the credit-scoring system ship?" It calls list_systems, then release_gate. Ask it to "run a fairness test on holdout.csv for gender and region, outcome repaid, prediction approved" and it calls run_fairness_test with the file path on your machine.

Tests

cd apps/mcp && uv run --with pytest pytest -q -p no:cacheprovider tests

同类 MCP Server

精选

Metabase

搜索、查询和可视化 Metabase 数据,操作受用户权限控制。

MEmetabase/metabase51k近 7 天新增 219 个 star

精选

next-ai-draw-io

描述一句话生成架构图,选中形状修改,每次改动可撤销。

DADayuanJiang/next-ai-draw-io37k近 7 天新增 119 个 star

精选

GitDiagram

将 GitHub 仓库转为交互式架构图,获取 Mermaid 源码和视频解说。

AHahmedkhaleel2004/gitdiagram19k近 7 天新增 85 个 star

Figma-Context-MCP

Give your coding agent access to your Figma data. Implement designs in any framework in one-shot.

GLGLips/Figma-Context-MCP16k近 7 天新增 56 个 star

stitch-skills

A library of Agent Skills designed to work with the Stitch MCP server. Each skill follows the Agent Skills open standard, for compatibility with coding agents such as Antigravity, Gemini CLI, Claude Code, Cursor.

GOgoogle-labs-code/stitch-skills15k近 7 天新增 2,572 个 star

精选

cursor-talk-to-figma-mcp

让智能体读取和修改 Figma 设计稿。

GRgrab/cursor-talk-to-figma-mcp7.1k近 7 天新增 11 个 star