LibreChat is a self-hosted chat application with agents, tool calling, OpenAPI Actions, MCP support, and multi-user access control. Use Iteration Layer when LibreChat agents need reliable file-processing tools instead of asking the base model to infer document structure from raw uploads.
Recommended Path
Use LibreChat Actions with Iteration Layer’s OpenAPI specification.
This gives agents callable tools from the same API surface used by production applications:
https://api.iterationlayer.com/openapi.json
Use an Iteration Layer API key as a bearer token:
Authorization: Bearer YOUR_API_KEY
Add An Action To A LibreChat Agent
- Open the LibreChat Agent Builder.
- Enable Actions for the agent.
- Add the Iteration Layer OpenAPI spec URL.
- Configure bearer-token authentication with your Iteration Layer API key.
- Save the action and test it in a private conversation before sharing the agent.
MCP Option
LibreChat also supports MCP servers in librechat.yaml. Iteration Layer’s MCP endpoint is:
https://api.iterationlayer.com/mcp
Example shape for a remote Streamable HTTP MCP server:
mcpServers:
iterationlayer:
type: streamable-http
url: https://api.iterationlayer.com/mcp
timeout: 180000
serverInstructions: trueIteration Layer MCP uses OAuth 2.1. If your LibreChat deployment cannot complete OAuth for this remote MCP server, use OpenAPI Actions instead.
Agent Instructions
Give the LibreChat agent concise tool-use instructions:
Use Iteration Layer tools for document extraction, document-to-markdown conversion, website extraction, image transformation, image generation, document generation, and sheet generation. Ask for a schema before extracting structured fields. Use async mode for large files or long-running jobs.
Good Use Cases
- Internal invoice and receipt review agents
- Contract intake agents that extract key obligations and renewal dates
- Research assistants that convert PDFs to Markdown before summarizing
- Operations agents that generate XLSX exports from extracted document fields
- Marketing agents that generate branded images or PDFs from structured content
Production Guidance
- Use LibreChat sharing and role controls before exposing tools to every user.
- Store API keys in LibreChat configuration, not in agent instructions.
- Prefer webhooks for long-running workflows.
- Link security reviewers to Trust & Compliance, EU Hosting, and Data Handling & Retention.