{"library":"office-powerpoint-mcp-server","title":"Office PowerPoint MCP Server","description":"The `office-powerpoint-mcp-server` library provides a Flask-based HTTP API server for programmatic manipulation of PowerPoint presentations using `python-pptx`. It exposes endpoints to open, save, add slides, add text boxes, and perform various other operations on PPTX files. The current version is 2.0.7, with updates occurring infrequently as it wraps `python-pptx`.","language":"python","status":"active","last_verified":"Thu Apr 16","install":{"commands":["pip install office-powerpoint-mcp-server"],"cli":null},"imports":["from office_powerpoint_mcp_server import app"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import subprocess\nimport time\nimport requests\n\nprint(\"Starting Office PowerPoint MCP Server...\")\n# Use a non-default port to reduce conflict chances for example\nserver_process = subprocess.Popen(['python', '-m', 'office_powerpoint_mcp_server', '--host', '127.0.0.1', '--port', '5001'])\n\nserver_url = \"http://127.0.0.1:5001\"\n\ntry:\n    print(f\"Server started. Waiting 5 seconds to ensure it's up on {server_url}...\")\n    time.sleep(5) # Give the server time to start\n    \n    # Test if the server is reachable\n    try:\n        response = requests.get(server_url)\n        response.raise_for_status() # Raise an HTTPError for bad responses (4xx or 5xx)\n        print(f\"Server is reachable! Response: {response.text}\")\n    except requests.exceptions.ConnectionError:\n        print(\"Error: Could not connect to the server. It might not have started correctly.\")\n    except requests.exceptions.RequestException as e:\n        print(f\"An unexpected error occurred: {e}\")\n        \n    print(f\"You can now send HTTP requests to its API endpoints, e.g., POST to {server_url}/open or {server_url}/save\")\n    print(\"To stop the server, interrupt this script (Ctrl+C).\")\n    # In a real scenario, you'd make various HTTP requests here to manipulate PowerPoint files.\n    input(\"Press Enter to stop the server...\") # Keep process alive until user input\nfinally:\n    print(\"Stopping server...\")\n    server_process.terminate()\n    server_process.wait()\n    print(\"Server stopped.\")","lang":"python","description":"This example demonstrates how to start the `office-powerpoint-mcp-server` programmatically using `subprocess`, verify its reachability, and then stop it. In a typical use case, you would run the server in a separate process or container and then interact with its HTTP API endpoints using a client library (e.g., `requests`) or `curl`.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}