MCP server for creating presentations using the Prezent API
Project description
Prezent MCP Server
A Model Context Protocol (MCP) server for creating presentations using the Prezent API.
Features
- Create presentations using prompts and templates
- Check presentation generation status
- Background polling for presentation completion
- Support for multiple presentation templates
- CLI entry point for direct execution
Setup
- Install dependencies:
pip install -r requirements.txt
- Set up environment variables:
export PRESENTATION_API_TOKEN="your_api_token_here"
Or create a .env file:
PRESENTATION_API_TOKEN=your_api_token_here
Building and Installing
Building the Package
To create a distributable Python package:
- Install build tools:
pip install build
- Build the package:
python -m build
This will create both wheel (.whl) and source distribution (.tar.gz) files in the dist/ directory.
Installing the Built Package
You can install the built package locally:
pip install dist/prezent_mcp_server-0.1.4-py3-none-any.whl
Or install from the source distribution:
pip install dist/prezent_mcp_server-0.1.4.tar.gz
Publishing to PyPI (Optional)
To publish the package to PyPI:
- Install twine:
pip install twine
- Upload to TestPyPI (for testing):
python -m twine upload --repository testpypi dist/*
- Upload to PyPI:
twine upload dist/*
Note: You'll need PyPI credentials to upload packages.
Usage
Running the MCP Server
Option A: Using the CLI Entry Point (Recommended)
prezent-mcp-server
Option B: Direct Python Execution
python prezent_mcp.py
Available Tools
create_presentation
Creates a new presentation using the specified prompt and template.
Parameters:
prompt(str): The presentation prompt/descriptiontemplate(str): The template ID to use for the presentation
Example:
create_presentation("Create a presentation about AI trends in 2024", "prezent_corporate_2022")
check_presentation_status
Checks the status of a presentation generation job.
Parameters:
callback_id(str): The callback ID returned when the presentation was submitted
Example:
check_presentation_status("abc123-def456-ghi789")
Templates
The server supports various presentation templates. If no template is specified, it defaults to prezent_corporate_2022.
Configuration
The server uses the following environment variables:
PRESENTATION_API_TOKEN: Your Prezent API authentication token
Development
This MCP server is built using FastMCP and provides async tools for presentation generation and status checking.
Package Information
- Current Version: 0.1.4
- Python Requirement: >=3.10
- Dependencies: httpx>=0.27.0, mcp[cli], python-dotenv
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file prezent_mcp_server-0.1.32.tar.gz.
File metadata
- Download URL: prezent_mcp_server-0.1.32.tar.gz
- Upload date:
- Size: 27.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
175da97906e170ab8cc1fb0be92845e6766323cc8b2231708e86547d5c620cec
|
|
| MD5 |
51cc3d8fd6d12f6c4679c43c16b6b21d
|
|
| BLAKE2b-256 |
94870575d04fe1a84e06997fd4829eadb33c8e0ba32d6b3075ac3071a560bd04
|
File details
Details for the file prezent_mcp_server-0.1.32-py3-none-any.whl.
File metadata
- Download URL: prezent_mcp_server-0.1.32-py3-none-any.whl
- Upload date:
- Size: 26.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
773877b85195d21614fa75f6058464151066a12cd45cad1d52e985394b3e5d30
|
|
| MD5 |
de117bd6e664272f3f6beabaded439a4
|
|
| BLAKE2b-256 |
c25c1008673910faf5ad4607318f1030d57100106d0b9e6e2c0330399586db7d
|