This MCP server allows you to create and manipulate PowerPoint presentations through a simple interface. It provides functionality to programmatically build slide decks with various content types and formatting options.
To install the MCP PPTX Server to Claude Desktop, use the following command:
fastmcp install .\server.py
To create a new PowerPoint presentation:
# Initialize a new presentation
response = await mcp.create_presentation()
presentation_id = response.presentation_id
Add new slides to your presentation:
# Add a title slide
await mcp.add_slide(
presentation_id=presentation_id,
slide_type="TITLE_SLIDE",
title="My Presentation",
subtitle="Created with MCP PPTX Server"
)
# Add a content slide with bullet points
await mcp.add_slide(
presentation_id=presentation_id,
slide_type="CONTENT_WITH_CAPTION",
title="Key Points",
content=[
"First important point",
"Second important point",
"Third important point"
]
)
Insert images into your slides:
# Add an image slide
await mcp.add_slide(
presentation_id=presentation_id,
slide_type="PICTURE_WITH_CAPTION",
title="Project Overview",
image_path="path/to/image.jpg",
caption="Figure 1: System Architecture"
)
Save your presentation to a file:
# Save the presentation
await mcp.save_presentation(
presentation_id=presentation_id,
file_path="my_presentation.pptx"
)
You can work with multiple presentations simultaneously:
# Create multiple presentations
response1 = await mcp.create_presentation()
response2 = await mcp.create_presentation()
# Work with specific presentations using their IDs
await mcp.add_slide(presentation_id=response1.presentation_id, ...)
await mcp.add_slide(presentation_id=response2.presentation_id, ...)
Customize slide layouts for specific needs:
# Create a custom layout slide
await mcp.add_slide(
presentation_id=presentation_id,
slide_type="CUSTOM",
elements=[
{
"type": "text_box",
"text": "Custom positioned text",
"position": {"x": 2, "y": 2, "width": 4, "height": 1}
},
{
"type": "image",
"path": "logo.png",
"position": {"x": 6, "y": 2, "width": 2, "height": 2}
}
]
)
Apply themes to maintain consistent styling:
# Apply a theme to the presentation
await mcp.apply_theme(
presentation_id=presentation_id,
theme_name="Modern"
)
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"cursor-rules-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-rules-mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.