factors-mcp
Python package exposing a Model Context Protocol (MCP) server for Factors.ai — list/create/update agents, run agents against domains, and use bundled prompt guidelines.
Requirements
- Python 3.10+
- A Factors private API token (
FACTORS_API_KEY) with access to the Factors API (FACTORS_API_URL)
Environment variables
| Variable | Default | Purpose |
|---|---|---|
FACTORS_API_KEY |
(required) | Private API token for Factors API calls |
FACTORS_API_URL |
https://api.factors.ai |
Factors API base URL |
FACTORS_HTTP_TIMEOUT_SECONDS |
30 |
HTTP timeout (seconds) for all tool calls except run_agent |
run_agent always uses a 300s HTTP timeout because agent runs can take several minutes.
Client configuration (Claude Desktop & Cursor)
Both clients drive the server over stdio. Point them at the Python interpreter or console script from the same virtualenv where you installed factors-mcp, and pass your API credentials in env (do not commit real keys into shared project files).
Claude Desktop
- Quit Claude Desktop completely.
- Open the config file in a text editor:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
- macOS:
- Merge the
mcpServersentry below with any existingmcpServersobject (do not remove other servers).
{
"mcpServers": {
"factors-ai": {
"command": "python3",
"args": ["-m", "factors-mcp"],
"env": {
"FACTORS_API_KEY": "your_private_token"
}
}
}
}
Restart Claude Desktop after saving.
Cursor
- Create or edit an MCP config file (JSON):
- Project:
<repo-root>/.cursor/mcp.json(optional; share with the team without secrets) - User-wide:
~/.cursor/mcp.json(macOS/Linux) or%USERPROFILE%\.cursor\mcp.json(Windows)
- Project:
- Add a
mcpServersentry (merge with existing servers if the file already exists).
{
"mcpServers": {
"factors-ai": {
"command": "python3",
"args": ["-m", "factors_mcp"],
"env": {
"FACTORS_API_KEY": "your_private_token",
"FACTORS_API_URL": "https://api.factors.ai"
}
}
}
}
Fully restart Cursor after changing MCP configuration so it reloads the server list.
Tip: Use absolute paths to python or factors-mcp so the client does not pick up a different interpreter than the one where the package is installed.
Run the MCP server
1. After installing the package (recommended)
export FACTORS_API_KEY=your_private_token
# Default transport is stdio (typical for Cursor / Claude Desktop)
factors-mcp
Or:
python3 -m factors_mcp
0.1.2
- Major bug fixes
License
Proprietary — Factors.ai internal use unless otherwise stated.
Metadata
Release files for factors-mcp 0.1.2
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 | Actions |
|---|---|---|---|---|
| factors_mcp-0.1.2.tar.gz | 8.7 kB | Without provenance | Details for factors_mcp-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| factors_mcp-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for factors_mcp-0.1.2-py3-none-any.whl |
Total release size: 19.1 kB
Release files / factors_mcp-0.1.2.tar.gz
| Download URL | factors_mcp-0.1.2.tar.gz |
|---|---|
| Size | 8.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1b125026ef8e73e6edef36fb6e60c8154a3eb488035681cf16d91557f9cac150
|
|
BLAKE2b-256 checksum How to use checksums |
f1024d313380a91cc23eccb7b1b840b41fe934774e9ebcd28ba8e03489aeb8e8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Release files / factors_mcp-0.1.2-py3-none-any.whl
| Download URL | factors_mcp-0.1.2-py3-none-any.whl |
|---|---|
| Size | 10.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a77d3f45b9288626ec8967c9fa93e37ad56be7f401480a73d3191422b1ea2cea
|
|
BLAKE2b-256 checksum How to use checksums |
6694e0547f5537f4a592df346adef2f12e267ef8acd6a3216c22d952899ea3a2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Security for factors-mcp 0.1.2
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.