Skip to main content

PraisonAI MCP

Host PraisonAI agents and tools as an MCP server for Cursor, Claude Desktop, and other MCP clients.

Install

pip install "praisonai-mcp[all]"

# Or via the umbrella product
pip install "praisonai[mcp]"

Quickstart

export OPENAI_API_KEY=sk-...
# Standalone heavy host (full argparse options)
praisonai-mcp serve --transport stdio
praisonai-mcp list-tools
praisonai-mcp doctor

# Via umbrella CLI (same host commands on `praisonai mcp …`)
praisonai mcp serve --transport stdio
praisonai mcp list-tools

Config management (list, add, sync, tools, …) works on both praisonai-mcp and praisonai mcp. Full capability registry requires praisonai co-install (_wrapper_bridge).

Connect your editor or agent

One command puts PraisonAI in Cursor, VS Code, Claude Code, Claude Desktop, Codex, Gemini CLI, Windsurf, Zed, Kiro, Antigravity, Cline, Continue, OpenCode, Goose, LM Studio or Copilot CLI:

praisonai connect                     # installed / connected / last active, per client
praisonai connect cursor              # writes ~/.cursor/mcp.json (diff + backup), then "N tools ready"
praisonai connect --all               # every installed client
praisonai connect codex --agents agents.yaml --tools 'ask_*'   # scope: only your agents
praisonai connect cursor --print      # one-click deep link, command and JSON; writes nothing
praisonai connect --remove            # undo everywhere
  • Writes are idempotent, keep a .praisonai.bak copy, and touch only the praisonai entry (TOML comments and other servers stay).
  • Secrets are never written: set keys are referenced in each client's own syntax (${env:OPENAI_API_KEY}, ${OPENAI_API_KEY}, Codex env_vars).
  • After writing, a real MCP initialize + tools/list runs against the exact command that was configured.
  • The server records which client connected (clientInfo) and when, in connections.json under the PraisonAI MCP folder; praisonai connect shows it as "last active". Nothing leaves the machine.
  • --tools and --agents are server arguments (serve --tools/--agents), so the scope holds in every client, one-click links included.
  • praisonai_mcp.connect.export_catalog(spec) returns the same catalog as JSON; PraisonAIUI's Connect page renders it.

Sign-in over HTTP (OAuth 2.1)

Locally nothing changes: stdio and --host 127.0.0.1 need no sign-in. Bind to a network address without --api-key and the server signs clients in itself, following the MCP authorization spec:

PRAISONAI_MCP_OWNER_KEY=… praisonai mcp serve --transport http-stream \
  --host 0.0.0.0 --issuer https://agents.example.com     # --oauth also turns it on for localhost
  • Editors find the sign-in on their own: 401 + WWW-Authenticate: Bearer resource_metadata=…, Protected Resource Metadata (RFC 9728) and Authorization Server Metadata (RFC 8414).
  • Authorization code with PKCE S256 only; public clients; the token audience is the requested resource (RFC 8707).
  • Dynamic Client Registration and Client ID Metadata Documents. VS Code, Zed, Kiro, Antigravity, Claude Code, ChatGPT/Codex, Goose and OpenCode prove who they are by their domain, and Cursor, VS Code, Claude and ChatGPT callbacks are recognised, so they show as Verified. Loopback redirects show as On this device and may use any port (RFC 8252). Any other app gets a warning that names where you will be sent.
  • The consent page asks once for the owner key (PRAISONAI_MCP_OWNER_KEY, or one printed at start). It lists the scopes in plain words, each with a checkbox, offers Allow read-only, and lets you choose how long access lasts. Deny returns error=access_denied to the app at once.
  • Refresh tokens rotate and work once. Replaying an old one disconnects the app.
  • Headless: the device flow (POST /oauth/device, then open /oauth/device/verify and enter ABCD-EFGH).
  • Connected apps: GET /oauth/apps and POST /oauth/apps/<id>/revoke (owner key as Bearer). Apps can also revoke a token themselves (RFC 7009).
  • Only SHA-256 hashes of tokens are stored, in oauth.json (mode 0600) in the PraisonAI MCP folder.

Three MCP layers (do not conflate)

Layer Package Role
Client praisonaiagents[mcp] Connect agents to external MCP servers
Light server praisonai-code (praisonai serve mcp) Basic ToolsMCPServer
Heavy host praisonai-mcp (this package) Full capability/recipe MCP server

Stack

praisonaiagents  (MCP client protocols)
   └── praisonai-mcp  (this package)
        └── praisonai  (wrapper shims: praisonai.mcp_server.*)

Boundary details: src/praisonai/tests/PRAISONAI_MCP_MANIFEST.md.

Metadata

Release files for praisonai-mcp 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for praisonai-mcp 0.2.0
File Size Uploaded Provenance Actions
praisonai_mcp-0.2.0.tar.gz 121.4 kB Without provenance Details for praisonai_mcp-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for praisonai-mcp 0.2.0
File Interpreter ABI Platform Actions
praisonai_mcp-0.2.0-py3-none-any.whl Python 3 none any Details for praisonai_mcp-0.2.0-py3-none-any.whl

Total release size: 261.7 kB

Release files / praisonai_mcp-0.2.0.tar.gz

Download URL praisonai_mcp-0.2.0.tar.gz
Size 121.4 kB
Tags Source
SHA-256 checksum
How to use checksums
9120d4017fd6eecdd40773624293dd63d598a109bddbfed9b8bc12291d5c66e1
BLAKE2b-256 checksum
How to use checksums
6243e8d7fe7548510b9d3f4b5b4f851f150063a3dbb3820ea634b3c52708d6ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / praisonai_mcp-0.2.0-py3-none-any.whl

Download URL praisonai_mcp-0.2.0-py3-none-any.whl
Size 140.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5db0272ccbc04315039c372980d4dfdff803229cc39b6c0e6e64c59967875a88
BLAKE2b-256 checksum
How to use checksums
bab3d595500f31b53dfe21255a373749f9cef9014632f602921a1b4df33fb2c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for praisonai-mcp 0.2.0

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.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page