Skip to main content

MCP Bridge for FactumStack Scientific Auditing

Project description

🚀 FactumStack MCP Bridge (Professional Edition)

PyPI version Python versions License: MIT

This package allows you to integrate FactumStack's scientific auditing capabilities into any environment that supports the Model Context Protocol (MCP) (such as Cursor, Claude Desktop, Windsurf, or Gemini CLI).

As a stdio-based bridge, it offers superior stability by avoiding common network disconnections found in remote transport protocols.


1. Installation

The easiest and recommended method for most users is to install directly from PyPI:

pip install factumstack-mcp

Once installed, the factumstack-mcp command will be available in your terminal.


2. Configuration (Environment Variables)

The bridge requires a valid API key. You can set it as an environment variable or in a .env file in your working directory:

  • FACTUMSTACK_API_KEY: Your FactumStack access key (Developer Plan or higher).

3. Integration in MCP Clients

Gemini CLI (Terminal)

Add the tool by running:

gemini mcp add FactumStack factumstack-mcp

Cursor / Claude Desktop / Cline (JSON Config)

Add this to your MCP server configuration file:

"mcpServers": {
  "FactumStack": {
    "command": "factumstack-mcp",
    "env": {
      "FACTUMSTACK_API_KEY": "YOUR_API_KEY_HERE"
    }
  }
}

4. Usage and Available Tools

Ask the AI to verify a claim. You don't need to invoke technical commands manually.

Example Prompts:

  • "Verify if there is scientific evidence that creatine improves cognitive function using FactumStack."
  • "Audit this health claim: 'Coffee reduces the risk of Parkinson's' with maximum rigor."

The AI will automatically discover and use these three tools:

check_claim: Performs a deep scientific audit.

  • Inputs: claim (string, req), max_rigor (boolean, opt).
  • Outputs: factum_score, factum_rating, evidence_level, summary, critical_flaw.

get_account_status: Consults your plan, identity, and usage quotas.

  • Outputs: Detailed JSON with identity, quotas, and active features.

check_connection: Diagnostic tool for infrastructure.

  • Outputs: status, latency_ms, endpoint, and providers' health (Scholar, OpenAlex).

5. Visibility and Diagnostics (Glass Box)

This bridge has been designed under the Glass Box principle:

  1. Real-Time Logs: Operational logs are emitted via stderr. You can see audit starts, cache hits, and latencies in your IDE's developer console.
  2. B.O.E. Metrics: Access the metrics dashboard on the FactumStack website to see the savings generated by "Cache Hits" from your MCP queries.
  3. Robust Timeout: The bridge supports audits of up to 120 seconds, ideal for max_rigor searches that require Dual Swarm orchestration.

6. Troubleshooting (FAQ)

  • Error: FACTUMSTACK_API_KEY not configured: Ensure the environment variable is defined in the context where the MCP client runs (e.g., restart Cursor after setting it).
  • Error 401 (Unauthorized): Verify that your key is valid and has not expired.
  • Timeout: Deep audits can take time. The bridge is configured to wait long enough, but some clients (like Claude Desktop) may have their own internal limits.

Alternative: Direct Connection (SSE)

If you prefer not to install the Python package, FactumStack supports Native SSE.

  • URL: https://factumstack-api-131666191475.europe-west1.run.app/api/v1/mcp/sse
  • Headers: Requires Authorization: Bearer YOUR_API_KEY.

© 2026 FactumStack - High Rigor Scientific Auditing.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

factumstack_mcp-1.4.0.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

factumstack_mcp-1.4.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file factumstack_mcp-1.4.0.tar.gz.

File metadata

  • Download URL: factumstack_mcp-1.4.0.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.0

File hashes

Hashes for factumstack_mcp-1.4.0.tar.gz
Algorithm Hash digest
SHA256 9f1a0c240286d327722761af06b0eacb7f0b2c585bd754a404a088812f31a110
MD5 4bfa5a9038d40cac1763b3f6e85f6c20
BLAKE2b-256 e2c56714af46df34a660da4d0b3a0948ed1fd0ee1847ada93c2cbd72379aa0e4

See more details on using hashes here.

File details

Details for the file factumstack_mcp-1.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for factumstack_mcp-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3eab1c4a4ba5fbb923a1a2905490480a9ad65485bf79691807cc713a7757a2d0
MD5 39af3f3bc3b10823b90301704fdff52e
BLAKE2b-256 e5439f8dbd60cd1e093515d4fc5e262f7ff2eb57b93a04c14916c2bfbdd2ebac

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page