Skip to main content
praisonai-mcp is the standalone package that hosts your PraisonAI agents and tools as an MCP server β€” reachable from Claude Desktop, Cursor, Windsurf, and any other MCP client, usable on its own or inside the full praisonai stack.
Run praisonai-mcp serve and this agent becomes a tool your MCP client can call.

Quick Start

1

Install the package

2

Set your API key

3

Serve over STDIO

Point Claude Desktop or Cursor at this command and your agents appear as MCP tools.

Install

Pick the extras you need β€” core alone covers the CLI and STDIO transport.
pip install "praisonai[mcp]" installs praisonai-mcp for you as part of the umbrella product.

Three MCP Layers

Three different packages serve three different MCP roles β€” don’t conflate them. See The Three MCP Layers for a decision diagram.

CLI Reference

The package ships a praisonai-mcp console script. Inside the full stack the same commands are available as praisonai mcp ….

Host commands

These work with praisonai-mcp alone β€” no other package required.
The host also registers four memory tools β€” see MCP Memory Tools.

Config commands

These read and write the shared PraisonAI configuration, which lives in praisonai-code. Install it to enable them.

Install Matrix

Which entrypoints exist depends on what you install.

Graceful Install Hint

Run a config command with only praisonai-mcp installed and you get an actionable hint instead of a traceback.
Host commands (serve, list-tools, doctor, serve-recipe) never need praisonai-code.

Backward Compatibility

Everything from the pre-extraction layout keeps working.
praisonai.mcp_server is a compatibility shim that re-exports praisonai_mcp.mcp_server, so existing scripts need no changes.

Best Practices

Core covers the CLI and STDIO transport. Add [server] for HTTP-stream and [auth] for OAuth 2.1 / OIDC. [all] bundles both.
Host commands run standalone, but list, add, sync, and friends read the shared config that ships with praisonai-code.
praisonai-mcp runs without the full wrapper, keeping MCP-host images small.
praisonai-mcp doctor checks protocol version, registered components, API keys, and dependencies in one pass. Add --json in CI or pre-flight deploy scripts β€” it emits parseable output ({"error": "...", "ready": false} on failure) and never trips on Windows cp1252 consoles.
The STDIO transport is hardened for real MCP clients. It runs on Windows + Python 3.13 (previously blocked by WinError 6) by reading stdin on a dedicated thread, turns malformed input into a JSON-RPC -32700 parse error instead of crashing, bounds the input queue to 1000 lines with backpressure, and shuts down cleanly on Ctrl+C or client disconnect. See MCP STDIO Server Transport.

PraisonAI MCP Server

Heavy MCP host reference and client setup.

The Three MCP Layers

Client vs light server vs heavy host, with a decision diagram.

Package Tiers

How the seven packages stack.

MCP Integration

Connect agents to external MCP servers.

MCP Memory Tools

Four memory tools this host exposes to any MCP client.