Skip to main content

Factors.ai MCP server — agent management and execution tools

Project description

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

  1. Quit Claude Desktop completely.
  2. Open the config file in a text editor:
    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
  3. Merge the mcpServers entry below with any existing mcpServers object (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

  1. 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)
  2. Add a mcpServers entry (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.

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

factors_mcp-0.1.2.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

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

factors_mcp-0.1.2-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file factors_mcp-0.1.2.tar.gz.

File metadata

  • Download URL: factors_mcp-0.1.2.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for factors_mcp-0.1.2.tar.gz
Algorithm Hash digest
SHA256 1b125026ef8e73e6edef36fb6e60c8154a3eb488035681cf16d91557f9cac150
MD5 818eef7b168aa0a0950397d40f05fbf6
BLAKE2b-256 f1024d313380a91cc23eccb7b1b840b41fe934774e9ebcd28ba8e03489aeb8e8

See more details on using hashes here.

File details

Details for the file factors_mcp-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: factors_mcp-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for factors_mcp-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a77d3f45b9288626ec8967c9fa93e37ad56be7f401480a73d3191422b1ea2cea
MD5 8519046a7096806eb9e05441e4843b38
BLAKE2b-256 6694e0547f5537f4a592df346adef2f12e267ef8acd6a3216c22d952899ea3a2

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