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.1.26

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.1.26
File Size Uploaded Provenance Actions
praisonai_mcp-0.1.26.tar.gz 121.0 kB Without provenance Details for praisonai_mcp-0.1.26.tar.gz

Built distribution (wheel)

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

Total release size: 260.6 kB

Release files / praisonai_mcp-0.1.26.tar.gz

Download URL praisonai_mcp-0.1.26.tar.gz
Size 121.0 kB
Tags Source
SHA-256 checksum
How to use checksums
1fab52ca86f8b7e7418473ddaaddf655e7fd37502d49222c8d22357c9953141c
BLAKE2b-256 checksum
How to use checksums
a9bb3466317f28b3e46058c88cc6028b2d8dfe12cdcda416ed5ad0c9f773be95
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.1.26-py3-none-any.whl

Download URL praisonai_mcp-0.1.26-py3-none-any.whl
Size 139.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7fce8e5fcb1f5616c576dfd99fa318f1ad4657df1d50e76b95d628cf9319c00a
BLAKE2b-256 checksum
How to use checksums
c10e70338beb332fdfe9b83c8d3e0d8823ea30e897388e6e7aceb950c8271909
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.1.26

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.1.26 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