Skip to main content
You can connect LangSmith Fleet to remote MCP servers to extend your agents with additional tools and integrations. This page covers how to add custom MCP servers and provides configuration details for popular remote servers. An MCP (Model Context Protocol) server exposes tools that an agent can call at runtime. A remote MCP server:
  • Runs outside of LangSmith (usually over HTTPS).
  • Owns its own authentication and authorization.
  • Acts as a bridge between your agent and an external system.
LangSmith Fleet doesn’t execute these tools itself, it forwards requests to the MCP server and returns the results to the agent.

How it works

  • Fleet discovers tools from remote MCP servers via the standard MCP protocol.
  • Headers configured in your workspace are automatically attached when fetching tools or calling them. Headers are key-value pairs sent with every HTTP request to your MCP server. They’re commonly used for authentication (like API keys or bearer tokens), but can also provide configuration information, content types, or custom metadata.
  • Tools from remote servers are available alongside built-in tools in Fleet.
Runtime: Fleet automatically connects to your MCP server and uses its tools.

Add a remote MCP server

You can add MCP servers directly from your agent or from workspace settings.
Adding MCP servers requires admin permissions.

Add to a specific agent

To add a remote MCP server to a specific agent:
1

Open the agent editor

Open your agent in the Fleet inbox. Next to the agent name, click the Edit Agent icon.
2

Add the MCP server

In the Toolbox section, click MCP. Enter the server name and URL, then configure authentication (see authentication types).
3

Save your agent

Click Save changes. Fleet will discover available tools from your MCP server and make them available in this agent.

Add to all agents in the workspace

To add a remote MCP server to all agents in the workspace:
1

Navigate to Fleet > Integrations

In the LangSmith UI, navigate to the Fleet > Integrations tab.
2

Add the server

  1. Click + Custom MCP at the bottom of the left sidebar.
  2. Add a Name for the MCP server.
  3. Add the MCP URL (e.g., https://api.example.com/mcp)
  4. Select the Authentication type. See Authentication types for more details.
3

Save the server

Click Save server. Fleet will automatically discover available tools from your MCP server and make them available in your agents. The configured headers are applied to both tool discovery requests and tool execution requests.

Authentication types

Select an authentication type based on the server’s requirements:
  • Headers: Add key-value pairs sent with every request. The most common pattern is using an Authorization bearer token:
    • Key: Authorization
    • Value: Bearer API_KEY
    You can add multiple headers if your MCP server requires additional authentication or configuration parameters. Each header key-value pair is sent with every request to the server.
  • OAuth 2.1 (Auto): Select this for servers that support OAuth via dynamic client registration. You’ll be prompted to log in with your account for that service.
  • OAuth 2.1 (Manual): Select this for servers that support OAuth, but require specifying the client ID/secret beforehand. OAuth providers used in this flow must have PKCE enabled.

Update your MCP server URL

Changing the URL of a custom MCP server will break any agents that use tools from that server.
Fleet stores tool references by MCP server URL. If you update the URL of a custom MCP server, existing agents will fail when attempting to call those tools because the stored URL no longer matches. To update an MCP server URL:
  1. Update your MCP server URL in the workspace settings.
  2. For each agent using tools from that server:
    • Remove the affected tools from the agent configuration.
    • Re-add the tools (they will now reference the new URL).
  3. Test the agent to confirm tools work correctly.

Supported servers

To view all available MCP servers and configuration details, navigate to the Fleet > Integrations tab.