Agents and LLM integration

View as MarkdownMarkdown

Set up your AI agent

Give your coding agent live access to the GroupDocs documentation and API reference through the GroupDocs Docs MCP server — no install, no API key. Learn more

claude mcp add --transport http groupdocs-docs https://docs.groupdocs.com/mcp

Also process documents locally

The GroupDocs.Markdown MCP server lets your agent work with files on your machine; they are never uploaded. It needs the .NET 10 SDK or Docker.

claude mcp add groupdocs-markdown -- dnx GroupDocs.Markdown.Mcp --yes
Folders, licensing and more →

AI agent and LLM friendly

GroupDocs.Markdown for Java is designed to work seamlessly with AI agents, LLMs, and automated code generation tools. The library ships machine-readable documentation in multiple formats so that AI assistants can discover and use the API without manual guidance.

MCP server

GroupDocs provides an MCP (Model Context Protocol) server that enables LLMs to query the documentation on demand instead of loading it all at once. This saves tokens and lets your AI assistant fetch only the information it needs for the current task.

To connect your AI tool to the MCP server, add the GroupDocs endpoint to your MCP configuration:

// Claude Code:   ~/.claude/settings.json (or project .mcp.json)
// Claude Desktop: ~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "groupdocs-docs": {
      "url": "https://docs.groupdocs.com/mcp"
    }
  }
}
// .vscode/mcp.json in your project root
{
  "servers": {
    "groupdocs-docs": {
      "url": "https://docs.groupdocs.com/mcp"
    }
  }
}
// .cursor/mcp.json in your project root
{
  "mcpServers": {
    "groupdocs-docs": {
      "url": "https://docs.groupdocs.com/mcp"
    }
  }
}
// ~/.config/opencode/config.json
{
  "mcpServers": {
    "groupdocs-docs": {
      "url": "https://docs.groupdocs.com/mcp"
    }
  }
}
// Any MCP-compatible client
{
  "mcpServers": {
    "groupdocs-docs": {
      "url": "https://docs.groupdocs.com/mcp"
    }
  }
}

See https://docs.groupdocs.com/mcp for full setup instructions and the list of available tools.

Machine-readable documentation

Every documentation page is available as a plain Markdown file that AI tools can fetch and process directly:

ResourceURL
Full documentation (single file)https://docs.groupdocs.com/markdown/java/llms-full.txt
Full documentation (all products)https://docs.groupdocs.com/markdown/llms-full.txt
Individual page (any page)Append .md to the page URL, e.g. https://docs.groupdocs.com/markdown/java.md
Quick start guidehttps://docs.groupdocs.com/markdown/java/quick-start-guide.md

How to use with AI tools

Point your AI assistant to the full documentation file for comprehensive context:

Fetch https://docs.groupdocs.com/markdown/java/llms-full.txt and use it
as a reference for GroupDocs.Markdown for Java API.

Or reference individual pages for focused tasks:

Read https://docs.groupdocs.com/markdown/java/quick-start-guide.md
and help me convert a PDF to Markdown.

Why Markdown output is ideal for AI pipelines

GroupDocs.Markdown converts documents into clean, structured Markdown — the preferred input format for LLMs and RAG systems:

  • Preserves document structure — headings, lists, tables, and emphasis are retained as semantic markup
  • No binary noise — unlike PDF or DOCX, Markdown is plain text that tokenizes efficiently
  • Chunk-friendly — split by headings (## ) for embedding and retrieval
  • Deterministic output — same input always produces the same Markdown, enabling reliable pipelines
import com.groupdocs.markdown.*;

import java.util.regex.Pattern;

// Convert any document to LLM-ready Markdown
DocumentConvertOptions options = new DocumentConvertOptions();
options.setImageExportStrategy(new SkipImagesStrategy());   // text-only for RAG
options.setFlavor(MarkdownFlavor.COMMON_MARK);

String markdown = MarkdownConverter.toMarkdown("professional-services.pdf", options);

// Split into chunks by headings for embedding
String[] chunks = Pattern.compile("\\n#{1,2} ").split(markdown);

See also