The `langsmith-mcp-server` package provides a TypeScript implementation of the Model Context Protocol (MCP) server, designed to integrate with LangSmith, a platform for developing, evaluating, and monitoring large language model (LLM) applications. This server acts as a gateway, exposing LangSmith's rich data (including conversation history, prompts, traces, runs, datasets, and experiments) through a standardized protocol. It offers functional parity with its official Python counterpart and is currently at version 0.1.7, indicating active development with potential for non-stable API changes before a 1.0 release. The package is primarily intended to be run as a standalone service, leveraging environment variables for configuration, though it also provides programmatic interfaces for embedding or advanced customization. Its key differentiators include native TypeScript support, a comprehensive set of tools for accessing LangSmith data, and standardized char-based pagination for large data fetches.
npm install langsmith-mcp-serverVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to programmatically start the LangSmith MCP Server, setting configuration options like port and the LangSmith API key from environment variables.
Always review release notes when updating and consider pinning to exact patch versions in production environments.
Refer to the documentation for each tool regarding `page_number`, `max_chars_per_page`, `preview_chars`, and `total_pages` to correctly paginate through results.
Upgrade your Node.js environment to version 18 or newer using a version manager like `nvm` or by installing a recent LTS release.
Ensure `LANGSMITH_API_KEY` is set in your environment before starting the server, e.g., `LANGSMITH_API_KEY=your_key npx langsmith-mcp-server` or `process.env.LANGSMITH_API_KEY = '...'` for programmatic use.
Set the `LANGSMITH_API_KEY` environment variable before running the server, e.g., `export LANGSMITH_API_KEY='your-secret-key'` or pass it in the `ServerOptions` when starting programmatically.
Upgrade your Node.js environment to version 18 or higher. Node.js 18+ includes the native `fetch` API which this server relies upon.
Stop the conflicting process, or specify a different port for the LangSmith MCP Server using the `PORT` environment variable (e.g., `PORT=8001 npx langsmith-mcp-server`) or in programmatic `ServerOptions`.
No dependency data recorded yet.