Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PYTHONPATHNoPath to the mcp-libre project directory
LIBREOFFICE_PATHNoOptional path to the LibreOffice executable (default is /usr/bin/libreoffice)/usr/bin/libreoffice

Tools

Functions exposed to the LLM to take actions

NameDescription
create_document

Create a new LibreOffice document

Args: path: Full path where the document should be created doc_type: Type of document to create (writer, calc, impress, draw) content: Initial content for the document (for writer documents)
read_document_text

Extract text content from a LibreOffice document

Args: path: Path to the document file
convert_document

Convert a document to a different format

Args: source_path: Path to the source document target_path: Path where converted document should be saved target_format: Target format (pdf, docx, xlsx, pptx, html, txt, etc.)
get_document_info

Get detailed information about a LibreOffice document

Args: path: Path to the document file
read_spreadsheet_data

Read data from a LibreOffice Calc spreadsheet

Args: path: Path to the spreadsheet file (.ods, .xlsx, etc.) sheet_name: Name of the specific sheet to read (if None, reads first sheet) max_rows: Maximum number of rows to read (default 100)
insert_text_at_position

Insert text into a LibreOffice Writer document

Args: path: Path to the document file text: Text to insert position: Where to insert the text ("start", "end", or "replace")
search_documents

Search for documents containing specific text

Args: query: Text to search for search_path: Directory to search in (default: common document locations)
batch_convert_documents

Convert multiple documents in a directory to a different format

Args: source_dir: Directory containing source documents target_dir: Directory where converted documents should be saved target_format: Target format for conversion source_extensions: List of source file extensions to convert (default: common formats)
merge_text_documents

Merge multiple text documents into a single document

Args: document_paths: List of paths to documents to merge output_path: Path where merged document should be saved separator: Text to insert between merged documents
get_document_statistics

Get detailed statistics about a document

Args: path: Path to the document file
open_document_in_libreoffice

Open a document in LibreOffice GUI for live viewing

Args: path: Path to the document to open readonly: Whether to open in read-only mode (default: False)
refresh_document_in_libreoffice

Send a refresh signal to LibreOffice to reload a document

Args: path: Path to the document that should be refreshed
watch_document_changes

Watch a document for changes and provide live updates

Args: path: Path to the document to watch duration_seconds: How long to watch for changes (default: 30 seconds)
create_live_editing_session

Create a live editing session with automatic refresh capabilities

Args: path: Path to the document for live editing auto_refresh: Whether to enable automatic refresh detection

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
list_documentsList all LibreOffice documents in common locations

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/patrup/mcp-libre'

If you have feedback or need assistance with the MCP directory API, please join our Discord server