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

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription
create_documentB

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_textC

Extract text content from a LibreOffice document

Args:
    path: Path to the document file
convert_documentC

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_infoC

Get detailed information about a LibreOffice document

Args:
    path: Path to the document file
read_spreadsheet_dataA

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_positionB

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_documentsC

Search for documents containing specific text

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

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_documentsA

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_statisticsC

Get detailed statistics about a document

Args:
    path: Path to the document file
open_document_in_libreofficeA

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_libreofficeB

Send a refresh signal to LibreOffice to reload a document

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

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_sessionC

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