Pact Tooling MCP Server
by pact-community-organizationio.github.Pact-Community-Organization/pactv0.2.2
Pact 5 tooling: REPL test runs, trap scanning, gas estimation, interface diff, format checks.
context tax
queued
security
queued
cold start
queued
freshness
Active6d ago
Install Pact Tooling MCP server
Install in Claude Code
claude mcp add pact -e PACT_COMMUNITY_WORKSPACE_ROOT='<pact-community-workspace-root>' -- npx -y @pact-community/mcp-pactInstall in Cursor
{
"mcpServers": {
"pact": {
"command": "npx",
"args": [
"-y",
"@pact-community/mcp-pact"
],
"env": {
"PACT_COMMUNITY_WORKSPACE_ROOT": "<pact-community-workspace-root>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"pact": {
"command": "npx",
"args": [
"-y",
"@pact-community/mcp-pact"
],
"env": {
"PACT_COMMUNITY_WORKSPACE_ROOT": "<pact-community-workspace-root>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"pact": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@pact-community/mcp-pact"
],
"env": {
"PACT_COMMUNITY_WORKSPACE_ROOT": "<pact-community-workspace-root>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"pact": {
"command": "npx",
"args": [
"-y",
"@pact-community/mcp-pact"
],
"env": {
"PACT_COMMUNITY_WORKSPACE_ROOT": "<pact-community-workspace-root>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| PACT_COMMUNITY_WORKSPACE_ROOT | yes | — | Workspace root directory; all file access is confined inside it. |
| PACT_COMMUNITY_PACT_BIN | — | — | Path to the pact binary (default: pact on PATH). |
Freshness
Active — last maintenance signal 6d ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-10-03 · 6d ago · GitHub
Latest release
2026-07-28 · 2mo ago · GitHub · v0.3.0
Package published
no data · npm/PyPI
Registry entry updated
2026-07-03 · 3mo ago · official registry · v0.2.2
FAQ
›How do I install the Pact Tooling MCP server in Claude Code?
Run: claude mcp add pact -e PACT_COMMUNITY_WORKSPACE_ROOT='<pact-community-workspace-root>' -- npx -y @pact-community/mcp-pact. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Pact Tooling require an API key?
Yes. It expects PACT_COMMUNITY_WORKSPACE_ROOT.
›Can I use Pact Tooling as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is Pact Tooling in the official MCP registry?
Yes, as io.github.Pact-Community-Organization/pact.
Alternatives to Pact Tooling
Other code execution & sandboxes MCP servers.