MCP Server for langfuse
Servidor MCP para langfuse
Una implementación de servidor de Protocolo de Contexto de Modelo (MCP) para integrar asistentes de IA con espacios de trabajo de Langfuse.
Descripción general
Este paquete proporciona un servidor MCP que permite a los asistentes de IA interactuar con los espacios de trabajo de Langfuse. Permite a los modelos de IA:
Consultar métricas LLM por rango de tiempo
Related MCP server: langfuse-mcp-extended
Instalación
# Install from npm
npm install shouting-mcp-langfuse
# Or install globally
npm install -g shouting-mcp-langfusePuedes encontrar el paquete en npm: shouting-mcp-langfuse
Prerrequisitos
Antes de usar el servidor, debe crear un proyecto de Langfuse y obtener las claves pública y privada. Puede encontrar estas claves en el panel de control de Langfuse.
configurar un proyecto Langfuse
obtener las claves públicas y privadas
establecer las variables de entorno
Configuración
El servidor requiere las siguientes variables de entorno:
LANGFUSE_DOMAIN: El dominio Langfuse (predeterminado:https://api.langfuse.com)LANGFUSE_PUBLIC_KEY: La clave pública de su proyecto LangfuseLANGFUSE_PRIVATE_KEY: Su clave privada del proyecto Langfuse
Uso
Ejecutarse como una herramienta CLI
# Set environment variables
export LANGFUSE_DOMAIN="https://api.langfuse.com"
export LANGFUSE_PUBLIC_KEY="your-public-key"
export LANGFUSE_PRIVATE_KEY="your-private
# Run the server
mcp-server-langfuseUsando en tu código
import { Server } from "@modelcontextprotocol/sdk/server/index.js";
import { langfuseClient } from "shouting-mcp-langfuse";
// Initialize the server and client
const server = new Server({...});
const langfuseClient = new LangfuseClient(process.env.LANGFUSE_DOMAIN, process.env.LANGFUSE_PUBLIC_KEY, process.env.LANGFUSE_PRIVATE_KEY);
// Register your custom handlers
// ...Herramientas disponibles
El servidor proporciona las siguientes herramientas de integración de langfuse:
getLLMMetricsByTimeRange: Obtener métricas LLM por rango de tiempo
Licencia
ISC
Autor
Repositorio
Available Tools
1 toolquery_llm_metricsC
Query LLM metrics
Inputs: fromTimestamp, toTimestamp, page, limit, +4 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
With only one tool, there is no possibility of confusion or overlap with other tools. The tool's purpose is clear and unambiguous.
The single tool uses a clear snake_case naming convention. Although there are no other tools to compare, the naming is consistent within itself.
A server named 'MCP Server for langfuse' with only one tool is severely undersized. Langfuse is a comprehensive LLM observability platform expecting tools for traces, scores, sessions, etc., not just metrics queries.
The server lacks any tools for creating, updating, or deleting resources, and does not cover common operations like managing traces or observations. It is severely incomplete for its stated domain.
Maintenance
Related MCP Connectors
MCP server for building and testing AI agents with multi-model experimentation and insights.
Query application logs, traces, and metrics from your AI coding assistant via Foam's MCP server.
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
MCP server that lets AI assistants use all OneSchema features exposed via the public API.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server that enables AI assistants to interact with Signoz observability platform, providing tools to query dashboards, metrics, traces, logs, and APM data with time range support.14MIT
- AlicenseAqualityCmaintenanceComprehensive MCP server for Langfuse, enabling AI assistants to access and manage traces, observations, scores, datasets, and sessions for observability.2410 npm2MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol (MCP) server for comprehensive monitoring and observability of systems using Langfuse.1MIT
- AlicenseNot gradedqualityFmaintenanceMCP server for Langfuse providing 50 tools for prompt management, observability, instance/organization management, and metrics tracking via natural language.MIT