Menu

Librechat

Hosted
by: Higress official
|
category: code
|
2025.04.22 updated

LibreChat Code Interpreter API offers a powerful sandbox environment for running code in multiple programming languages.

Using URL to connect to MCP Server
Step 1: enter

apiKey

User-defined API keys are retained for only one week
Step 2: create URL
sign in
You must sign in before generating the URL
Step 3: MCP Client One-Click Install Server (Optional)
DeepChat
Cherry Studio
LobeChat
5ire

LibreChat MCP Server

An implementation of the Librechat Code Interpreter MCP server that follows the OpenAPI specification, providing code execution and file management capabilities.

Features

  • Supports code execution in multiple programming languages
  • Supports file upload, download and deletion
  • Provides detailed API response information

Usage Guide

Get API-KEY

  1. Register for a LibreChat account Visit official website
  2. Manage your plan and then generate API Key through developer console.

Generate SSE URL

On the MCP Server interface, log in and enter the API-KEY to generate the URL.

Configure MCP Client

On the user's MCP Client interface, add the generated SSE URL to the MCP Server list.

"mcpServers": {
    "librechat": {
      "url": "https://mcp.higress.ai/mcp-librechat/{generate_key}",
    }
}

Available Tools

delete_file

Delete specified file

Parameters:

  • fileId: File ID (required)
  • session_id: Session ID (required)

executeCode

Execute code in specified programming language

Parameters:

  • code: Source code to execute (required)
  • lang: Programming language (required, options: c, cpp, d, f90, go, java, js, php, py, rs, ts, r)
  • args: Command line arguments (optional)
  • entity_id: Assistant/agent identifier (optional)
  • files: Array of file references (optional)
  • user_id: User identifier (optional)

get_file

Get file information

Parameters:

  • session_id: Session ID (required)
  • detail: Detail information (optional)

Related MCP Servers

21st.dev Magic AI Agent
Local

by: Community

Magic Component Platform (MCP) is a powerful AI-driven tool that helps developers create beautiful, modern UI components instantly through natural language descriptions. It integrates seamlessly with popular IDEs and provides a streamlined workflow for UI development.

code|2025.06.05 updated

Context7
Hosted

by: Higress official

Context7 pulls up-to-date, version-specific documentation and code examples directly from the source, get better answers when generating and debuging codes.

code|2025.04.29 updated

Yuque
Hosted

by: Higress official

Manage Yuque knowledge base, documents, and team members

productivity|2025.04.25 updated

E2B
Hosted

by: Higress official

E2B Code Interpreter providing sandbox environment management capabilities, which enables execution of Python code.

code|2025.04.23 updated