Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.langdock.com/llms.txt

Use this file to discover all available pages before exploring further.

What is MCP?

MCP is an open protocol that standardizes how applications provide context to LLMs. Think of MCP like a USB-C port for AI applications. Just as USB-C provides a standardized way to connect your devices to various peripherals and accessories, MCP provides a standardized way to connect AI models to different data sources and tools.
MCP integrations in Langdock reuse the existing integration architecture with MCP-specific extensions, allowing the same action execution system to work for both traditional integrations and MCP servers.

Langdock MCP Key Features

Transport Types

  • STREAMABLE_HTTP: HTTP-based transport with optional streaming support
  • SSE (Server-Sent Events): Real-time communication transport for streaming data

Authentication Methods

  • No Authentication: For public MCP servers that don’t require identification
  • API Key Authentication: Simplified key-based authentication with automatic header formatting
  • OAuth Authentication: Full OAuth 2.0 with DCR support for secure authorization flows
  • Advanced OAuth Authentication: Full OAuth 2.0 without DCR support

Authentication Details

  • Custom headers: Add static values or the placeholders {{ access_token }}, {{ refresh_token }}, and {{ api_key }}.
  • OAuth discovery: Langdock discovers supported OAuth metadata and scopes automatically when available.
  • MCP Apps: Some MCP Apps expose connection metadata for faster setup.
  • Advanced OAuth: Use Advanced OAuth when your server does not support Dynamic Client Registration.

Tool Integration

Automatic Discovery: Langdock discovers tools and resources from the MCP server during setup and shows up to 50 items. Tools are converted to Langdock actions with the same previews you’re familiar with.
  • Tools: Select the tools you want Agents to call.
  • Confirmation: Newly saved tools and resources do not require confirmation before execution by default. You can enable confirmation per tool after saving if you need a confirmation step.

MCP Resources

MCP resources expose contextual data from the server. Langdock discovers resources during setup and lets you save the ones you want to make available. For file resources, see MCP File Outputs.

Langdock as an MCP Server

Langdock also provides its own MCP server endpoint, allowing external AI clients to call your Langdock agents.

Langdock Agent MCP Server

Connect external AI clients to your Langdock agents via MCP

Getting Started

Different authentication methods have slightly different connection flows.
  1. Enter URL Enter the endpoint URL of your MCP server.
Oauth Mcp Config - Enter MCP URL
  1. Select Authentication Method Choose one of the four authentication types. Follow the respective guide below:

No Authentication & API Key Authentication

For public or API key-protected servers, simply enter the server URL (and API key if required).

OAuth Authentication

For servers supporting OAuth with PKCE, the connection process is straightforward:
Oauth Mcp Config - click Add connection
  1. Enter the server URL and select OAuth.
  2. Click ”+ Add connection” to initiate the OAuth flow.
Oauth Mcp Config - Go through the OAuth Flow
  1. Once connected, a success popup will confirm the connection.
  2. Click “Test connection” to verify access and see available tools. If the test fails, Langdock shows the error returned by the server.
Mcp Config - Test connection and see available tools
  1. Select the tools you want to use, then click “Save tools”. Use CMD + S on Mac or Ctrl + S on Windows to save. Use CMD + Enter on Mac or Ctrl + Enter on Windows to test.

Advanced OAuth Authentication

For servers using OAuth without DCR, the process involves a few extra steps:
Oauth Mcp Config - Advanced OAuth setup
  1. Enter the server URL and select Advanced OAuth 2.0.
  2. Copy the OAuth redirect URL into your app’s API or developer settings.
Oauth Mcp Config - Add Client ID and Client Secret to Langdock
  1. Copy Client ID and Client Secret from your app into Langdock
  2. Add Authorization URL (for permissions) and Token URL (for token exchange)
  3. Define required OAuth scopes (space or comma-separated per your server’s documentation)
Mcp Config - Test connection and see available tools
  1. Test connection and save tools

Zapier MCP Configuration

For Zapier MCP servers, the URL has this format: https://mcp.zapier.com/api/mcp/s/[your-api-key]/mcp split your URL as follows:

Additional Resources