PPTAgent supports the Model Context Protocol (MCP), allowing you to generate presentations via tools in Claude or Cursor.
First, install the package and set the required environment variables:
uv pip install pptagent
export PPTAGENT_MODEL=openai/gpt-4.1
export PPTAGENT_API_BASE=http://localhost:8000/v1
export PPTAGENT_API_KEY=your_key
uv run pptagent-mcp
To use it in Claude or Cursor, add the following configuration to your MCP settings:
{
"mcpServers": {
"pptagent": {
"command": "uv",
"args": [
"run",
"--with",
"pptagent",
"pptagent-mcp"
],
"env": {
"PPTAGENT_MODEL": "openai/gpt-4.1",
"PPTAGENT_API_BASE": "http://localhost:8000/v1",
"PPTAGENT_API_KEY": "your_key"
}
}
}
}
Available MCP Tools:
list_templates: List all available PowerPoint templatesset_template: Select a PowerPoint template by namecreate_slide: Create a slide with a given layoutwrite_slide: Write the slide elements for generating a PowerPoint slidegenerate_slide: Generate a slide after setting layout and contentsave_generated_slides: Save generated slides to a PowerPoint file
{
"mcpServers": {
"pptagent": {
"command": "uv",
"args": [
"run",
"--with",
"pptagent",
"pptagent-mcp"
],
"env": {
"PPTAGENT_MODEL": "openai/gpt-4.1",
"PPTAGENT_API_BASE": "http://localhost:8000/v1",
"PPTAGENT_API_KEY": "your_key"
}
}
}
}