ClaudeCodeMod

All shelves / MCP servers

FairMind

io.github.adhit-r/fairmind · 17 stars · Python · MIT

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

Install

The repo has no one-line install. Follow its README.

Published as

  • PyPIfairmind-mcpstdio

From the server's entry in the official MCP Registry.

Open the repo

Configuration

NameSet asWhat it is
FAIRMIND_API_URLRequiredEnv varBase URL of your FairMind host.
FAIRMIND_API_KEYRequired · SecretEnv varFairMind API key, minted at POST /api/v1/auth/api-keys.

Files

apps/mcp/README.md

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. It is a thin layer over the fairmind Python SDK and talks to the server over stdio.

Tools

Tool What it does
list_systems AI systems your key can see, with id, risk tier and lifecycle stage
release_gate Verdict (go, conditional_go, no_go), confidence, the five checks and the reasons
clause_map The gate read per regulatory clause; optional frameworks such as EUAIA, ISO42001
run_fairness_test Uploads a local CSV, stores the measured result as evidence, returns metrics and the new gate
record_monitoring_snapshot Compares recent decisions in a local CSV with the latest fairness run (drift, impact ratio, PSI)
attest_check Records a person's statement that data_governance, human_oversight, monitoring or environmental is satisfied
list_evaluations Searches the evaluation catalogue (drift, leakage, prompt injection, jailbreaks, counterfactual flip rate, agent configuration and more) and says which FairMind can run
describe_evaluation The files and params an evaluation takes, and whether it also runs as a behaviour test against the live system
run_evaluation Runs an evaluation on local files, against the live system (live) or on the connected agent platform (use_connection); stores the result as measured evidence

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, so the tool tells the agent to use only statements the user gave or confirmed.

Install

# from a checkout, with uv (the SDK is resolved from ../sdk)
cd apps/mcp && uv sync

# or with pip: SDK first, then this package
pip install -e apps/sdk -e apps/mcp

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 -- uv run --project /path/to/fairmind/apps/mcp 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": "uv",
      "args": ["run", "--project", "/path/to/fairmind/apps/mcp", "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 uv run --project /path/to/fairmind/apps/mcp 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

Facts

Kind
MCP server
Repo
adhit-r/fairmind
Group
Uncategorized
Stars
17
License
MIT
Language
Python
Last push
2026-11-09
Forks
15
MCP Registry
io.github.adhit-r/fairmind
Homepage
www.fairmind.xyz
Topics
ai-governance, fastapi, nextjs, open-source, python, responsible-ai, typescript, llm, agentic-ai, ai-agents, ai-assurance, ai-audit, ai-compliance, ai-evaluation, ai-risk-management, ai-safety, eu-ai-act, iso-42001, llm-evaluation, nist-ai-rmf

Next on this shelf

  1. 5011Automataapp.getautomata/automataScoped, revocable access to your WhatsApp, Telegram, IMAP email and PostgreSQL for AI agents.17
  2. 5012Kodzadev.kodza/kodzaFree premium UI components in plain HTML, CSS and vanilla JS, for AI coding assistants.17
  3. 5013Docdexbekirdag/docdex16
  4. 5014DynamoDB MCP Serverimankamyabi/dynamodb-mcp-serverModel Context Protocol server for managing Amazon DynamoDB resources16
  5. 5015Extend Mcppaywithextend/extend-ai-toolkitExtend AI Toolkit16
  6. 5016アイリ Android MCPproj-airi/airi-androidA MCP server to allow LLM to use Android Device.16