mcp115
by qinghai5060
Overview
This server acts as an API gateway for LLMs to interact with 115 cloud storage, enabling file management operations.
Installation
go build -o mcp115 cmd/main.go && ./mcp115Environment Variables
- MCP_PORT
- MCP_HOST
- MCP_LOG_LEVEL
- MCP_LOG_FORMAT
- MCP_DEBUG_MODE
- MCP_SESSION_TIMEOUT
- MCP_SESSION_CLEANUP_INTERVAL
- MCP_MAX_SESSIONS
- MCP_TEMP_DIR
- MCP_MAX_TEMP_FILE_SIZE
- MCP_TEMP_FILE_CLEANUP_INTERVAL
- MCP_HTTP_TIMEOUT
- MCP_HTTP_RETRY_COUNT
- MCP_HTTP_RETRY_DELAY
- MCP_MAX_UPLOAD_SIZE
- MCP_CHUNK_SIZE
- MCP_115_API_HOST
- MCP_115_APP_KEY
- MCP_115_MAX_CONNECTIONS
Security Notes
The primary security vulnerability is in the `internal/api/auth.go`'s `handleLogin` function. It uses `internal/api/driver_wrapper.go`'s `Login` method, which is a mock implementation that unconditionally returns success (`return nil`). This means the MCP server's '115.login' API command will grant a valid session to *any* provided username and password, without actually authenticating with the 115 cloud service. This makes the server completely insecure if exposed. Additionally, session information (SessionID, UserID, Username, etc.) is stored in plaintext JSON files on disk (defaulting to './sessions'), posing a significant information leakage risk if the storage directory is compromised or improperly secured. While the README suggests cookie-based login for a CLI tool, the server API directly exposes a username/password login that is broken by design.
Similar Servers
mcp-filesystem-server
Provides secure and controlled access to the local filesystem via the Model Context Protocol (MCP) for AI agents and other applications.
mkp
MKP is a Model Context Protocol (MCP) server for Kubernetes that enables LLM-powered applications to interact with Kubernetes clusters.
tinystruct-mcp
This server provides a JSON-RPC interface for Git, GitHub API, and file system operations, intended for integration into DevOps, automation, and AI-driven workflows.
osmmcp
A Multi-Cloud Platform (MCP) server, likely developed in Go, designed for managing and standardizing transport across various cloud services, potentially including AI integration (Claude) and geographical data processing.