LangSmith MCP Server with per-call billing via SettleGrid.
Manage and query LangSmith tracing sessions, filter views, and deployment info via the LangSmith API.
npm install
cp .env.example .env # Add your SettleGrid API key
npm run dev| Method | Description | Cost |
|---|---|---|
get_server_info() |
Get information about the current LangSmith deployment | 1¢ |
list_sessions(name?: string, name_contains?: string, limit?: number, offset?: number, include_stats?: boolean) |
List tracing sessions with optional filters | 1¢ |
get_session(session_id: string, include_stats?: boolean) |
Get a specific tracing session by ID | 1¢ |
create_session(name: string, description?: string, upsert?: boolean) |
Create a new tracing session | 3¢ |
delete_session(session_id: string) |
Delete a specific tracing session by ID | 3¢ |
get_session_metadata(session_id: string, k?: number, metadata_keys?: string) |
Get top metadata key-value counts for a session | 1¢ |
list_session_views(session_id: string) |
List all filter views for a tracing session | 1¢ |
get_session_view(session_id: string, view_id: string) |
Get a specific filter view for a tracing session | 1¢ |
name(string) — Exact session name to filter byname_contains(string) — Substring to match against session nameslimit(number) — Max number of sessions to return (default 20, max 100)offset(number) — Pagination offset (default 0)include_stats(boolean) — Whether to include stats in the response
session_id(string, required) — UUID of the tracing sessioninclude_stats(boolean) — Whether to include stats in the response
name(string, required) — Name for the new tracing sessiondescription(string) — Optional description for the sessionupsert(boolean) — If true, update existing session with same name instead of creating new
session_id(string, required) — UUID of the tracing session to delete
session_id(string, required) — UUID of the tracing sessionk(number) — Number of top values to return per key (default 10)metadata_keys(string) — Comma-separated list of metadata keys to include
session_id(string, required) — UUID of the tracing session
session_id(string, required) — UUID of the tracing sessionview_id(string, required) — UUID of the filter view
| Variable | Required | Description |
|---|---|---|
SETTLEGRID_API_KEY |
Yes | Your SettleGrid API key from settlegrid.ai |
LANGSMITH_API_KEY |
Yes | LangSmith API key from https://docs.langchain.com/langsmith/create-account-api-key#create-an-api-key |
- Provider: LangSmith
- Base URL: https://api.smith.langchain.com
- Auth: API key required
- Docs: https://docs.smith.langchain.com/reference/api
docker build -t settlegrid-langsmith .
docker run -e SETTLEGRID_API_KEY=sg_live_xxx -p 3000:3000 settlegrid-langsmithClick the "Deploy with Vercel" button above, or:
npm run build
vercel --prodMIT - see LICENSE
Built with SettleGrid — The Settlement Layer for the AI Economy