🚀 FactumStack MCP Bridge (Professional Edition)
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 & Update
Install or update the package directly from PyPI:
# Install new version
pip install factumstack-mcp
# Update to latest (v1.4.0+)
pip install --upgrade factumstack-mcp
Once installed or updated, 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
⚠️ Important: Most clients (including Gemini CLI and Cursor) require a restart or a new session to discover newly registered tools and environment variables correctly.
Gemini CLI (Terminal)
The most robust way to add the tool is by using the Python module execution:
gemini mcp add FactumStack python --args "-m,factumstack_mcp.bridge"
Note: Ensure your FACTUMSTACK_API_KEY is available in your environment or added to the .gemini/settings.json file. Restart your terminal session after running this command.
Cursor / Claude Desktop / Cline (JSON Config)
Add this to your MCP server configuration file (e.g., cline_mcp_settings.json or claude_desktop_config.json):
"mcpServers": {
"FactumStack": {
"command": "python",
"args": ["-m", "factumstack_mcp.bridge"],
"env": {
"FACTUMSTACK_API_KEY": "YOUR_API_KEY_HERE"
}
}
}
Tip: Using python -m ensures the bridge finds all its dependencies regardless of your system's PATH configuration. Restart your IDE/Client after saving the configuration file.
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 with high-granularity alignment.
- Inputs:
claim(string, req),max_rigor(boolean, opt). - Outputs:
factum_score: Reliability score (0-100).factum_rating: Qualitative verdict.evidence_level: Highest detected evidence level.summary: Executive conclusion.reasoning_scratchpad: Full Chain-of-Thought reasoning based on scientific abstracts.critical_flaw: The most relevant methodological or logical flaw detected.citations: List of lightweight citations including Titles, Authors, Year, and URLs for direct consultation.
○ get_account_status: Consults your plan, identity, and usage quotas.
- Outputs: Detailed JSON with
identity,quotas, and activefeatures.
○ 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:
- Real-Time Logs: Operational logs are emitted via
stderr. You can see audit starts, cache hits, and latencies in your IDE's developer console. - B.O.E. Metrics: Access the metrics dashboard on the FactumStack website to see the savings generated by "Cache Hits" from your MCP queries.
- Robust Timeout: The bridge supports audits of up to 120 seconds, ideal for
max_rigorsearches 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.
Metadata
Release files for factumstack-mcp 1.5.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| factumstack_mcp-1.5.3.tar.gz | 7.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| factumstack_mcp-1.5.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.4 kB
Release files / factumstack_mcp-1.5.3.tar.gz
| Download URL | factumstack_mcp-1.5.3.tar.gz |
|---|---|
| Size | 7.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f2b45d1694c717dbf0a42338529bae7ea4d330b57f36c3b99abfd416edea7b30
|
|
BLAKE2b-256 checksum How to use checksums |
a9f2713bd9cb1d43e06d878388be15e6e68622f5fe256c0aba73926f5e4501ae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.0
|
Release files / factumstack_mcp-1.5.3-py3-none-any.whl
| Download URL | factumstack_mcp-1.5.3-py3-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b14744fbf4bd165c115f32c0a05a7cf9e267ee9d29ac4b1aecda4f14de24b9ec
|
|
BLAKE2b-256 checksum How to use checksums |
0b2f3470425ca30ebad6296014b85217c8f4d32ba097d1a66df111ff8c5f9a5f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.0
|
Security for factumstack-mcp 1.5.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.