{"id":26648411,"url":"https://github.com/langfuse/mcp-server-langfuse","last_synced_at":"2025-12-30T00:11:35.210Z","repository":{"id":277752388,"uuid":"933201974","full_name":"langfuse/mcp-server-langfuse","owner":"langfuse","description":"Model Context Protocol (MCP) Server for Langfuse Prompt Management. This server allows you to access and manage your Langfuse prompts through the Model Context Protocol.","archived":false,"fork":false,"pushed_at":"2025-02-15T21:24:41.000Z","size":73,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-15T21:26:41.786Z","etag":null,"topics":["langfuse","llm","llmops","mcp","model-context-protocol","prompt-management","prompting"],"latest_commit_sha":null,"homepage":"https://langfuse.com","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/langfuse.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-15T11:58:06.000Z","updated_at":"2025-02-15T21:23:30.000Z","dependencies_parsed_at":"2025-02-15T21:26:51.897Z","dependency_job_id":"ef74a3d1-5e6d-4a70-812a-cf3f82cbc5dc","html_url":"https://github.com/langfuse/mcp-server-langfuse","commit_stats":null,"previous_names":["langfuse/mcp-server-langfuse"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/langfuse%2Fmcp-server-langfuse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/langfuse%2Fmcp-server-langfuse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/langfuse%2Fmcp-server-langfuse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/langfuse%2Fmcp-server-langfuse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/langfuse","download_url":"https://codeload.github.com/langfuse/mcp-server-langfuse/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245372379,"owners_count":20604491,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["langfuse","llm","llmops","mcp","model-context-protocol","prompt-management","prompting"],"created_at":"2025-03-25T00:01:56.528Z","updated_at":"2025-12-30T00:11:35.167Z","avatar_url":"https://github.com/langfuse.png","language":"TypeScript","funding_links":[],"categories":["Monitoring \u0026 Observability","AI Integration MCP Servers","*Ops for AI","📚 Projects (1974 total)","Production-Ready Servers","🤖 AI/ML","پیاده‌سازی‌های سرور","Developer Tools","官方 MCP 服务器列表","TypeScript","Official Servers","MCP 服务器精选列表","Content Creation","カテゴリ","Table of Contents","Other"],"sub_categories":["Video","LLMOps","MCP Servers","💻 \u003ca name=\"developer-tools\"\u003e\u003c/a\u003eابزارهای توسعه‌دهنده","How to Submit","🛠️ 其他实用工具与集成","🛠️ \u003ca name=\"developer-tools\"\u003e\u003c/a\u003e開発ツール","AI Services"],"readme":"# Langfuse Prompt Management MCP Server\n\n[Model Context Protocol](https://github.com/modelcontextprotocol) (MCP) Server for [Langfuse Prompt Management](https://langfuse.com/docs/prompts/get-started). This server allows you to access and manage your Langfuse prompts through the Model Context Protocol.\n\n## Demo\n\nQuick demo of Langfuse Prompts MCP in Claude Desktop (_unmute for voice-over explanations_):\n\nhttps://github.com/user-attachments/assets/61da79af-07c2-4f69-b28c-ca7c6e606405\n\n## Features\n\n### MCP Prompt\n\nThis server implements the [MCP Prompts specification](https://modelcontextprotocol.io/docs/concepts/prompts) for prompt discovery and retrieval.\n\n- `prompts/list`: List all available prompts\n\n  - Optional cursor-based pagination\n  - Returns prompt names and their required arguments, limitation: all arguments are assumed to be optional and do not include descriptions as variables do not have specification in Langfuse\n  - Includes next cursor for pagination if there's more than 1 page of prompts\n\n- `prompts/get`: Get a specific prompt\n\n  - Transforms Langfuse prompts (text and chat) into MCP prompt objects\n  - Compiles prompt with provided variables\n\n### Tools\n\nTo increase compatibility with other MCP clients that do not support the prompt capability, the server also exports tools that replicate the functionality of the MCP Prompts.\n\n- `get-prompts`: List available prompts\n\n  - Optional `cursor` parameter for pagination\n  - Returns a list of prompts with their arguments\n\n- `get-prompt`: Retrieve and compile a specific prompt\n  - Required `name` parameter: Name of the prompt to retrieve\n  - Optional `arguments` parameter: JSON object with prompt variables\n\n## Development\n\n```bash\nnpm install\n\n# build current file\nnpm run build\n\n# test in mcp inspector\nnpx @modelcontextprotocol/inspector node ./build/index.js\n```\n\n## Usage\n\n### Step 1: Build\n\n```bash\nnpm install\nnpm run build\n```\n\n### Step 2: Add the server to your MCP servers:\n\n#### Claude Desktop\n\nConfigure Claude for Desktop by editing `claude_desktop_config.json`\n\n```json\n{\n  \"mcpServers\": {\n    \"langfuse\": {\n      \"command\": \"node\",\n      \"args\": [\"\u003cabsolute-path\u003e/build/index.js\"],\n      \"env\": {\n        \"LANGFUSE_PUBLIC_KEY\": \"your-public-key\",\n        \"LANGFUSE_SECRET_KEY\": \"your-secret-key\",\n        \"LANGFUSE_BASEURL\": \"https://cloud.langfuse.com\"\n      }\n    }\n  }\n}\n```\n\nMake sure to replace the environment variables with your actual Langfuse API keys. The server will now be available to use in Claude Desktop.\n\n#### Cursor\n\nAdd new server to Cursor:\n\n- Name: `Langfuse Prompts`\n- Type: `command`\n- Command:\n  ```bash\n  LANGFUSE_PUBLIC_KEY=\"your-public-key\" LANGFUSE_SECRET_KEY=\"your-secret-key\" LANGFUSE_BASEURL=\"https://cloud.langfuse.com\" node absolute-path/build/index.js\n  ```\n\n## Limitations\n\nThe MCP Server is a work in progress and has some limitations:\n\n- Only prompts with a `production` label in Langfuse are returned\n- All arguments are assumed to be optional and do not include descriptions as variables do not have specification in Langfuse\n- List operations require fetching each prompt individually in the background to extract the arguments, this works but is not efficient\n\nContributions are welcome! Please open an issue or a PR ([repo](https://github.com/langfuse/mcp-server-langfuse)) if you have any suggestions or feedback.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flangfuse%2Fmcp-server-langfuse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flangfuse%2Fmcp-server-langfuse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flangfuse%2Fmcp-server-langfuse/lists"}