mcp-server
by context-hub
Overview
This MCP server module provides context generation, tool execution, and prompt management capabilities for AI clients like Claude Desktop, Cursor, and Codex, acting as a backend for 'ctx' (Context Generator) framework.
Installation
ctx serverEnvironment Variables
- MCP_TOOL_COMMAND_EXECUTION
- GITHUB_PAT
- MCP_FILE_OPERATIONS
- MCP_SESSION_TYPE
- MCP_HOST
- MCP_PORT
- MCP_TRANSPORT
- OAUTH_ENABLED
- OAUTH_CLIENT_ID
- OAUTH_CLIENT_SECRET
Security Notes
The `RunToolHandler` executes arbitrary shell commands and the `HttpToolHandler` makes external HTTP requests, both allowing arguments to be passed from the MCP client. While `ToolSchema` and `ToolArgumentsProvider` are in place to define and potentially restrict arguments, the inherent risk of command injection (if `ToolArg` values are not properly sanitized or schemas are not strictly enforced) and Server-Side Request Forgery (SSRF) remains very high. The default `MCP_TOOL_COMMAND_EXECUTION` is `true`, enabling command execution by default. Loading content from external URLs in `FileMessageContentLoader` also presents an SSRF risk.
Similar Servers
generator
Provides a Retrieval-Augmented Generation (RAG) system and Micro-Context Protocol (MCP) server for AI assistants to understand, interact with, and generate documentation/code for projects. It allows indexing codebase knowledge, semantic search, and exposing file system, Git, and code analysis tools to AI agents.
php-mcp
Facilitates communication and integration between LLM applications and external data sources or tools by implementing the Model Context Protocol (MCP).
php-mcp-sdk
A PHP SDK for building Model Context Protocol (MCP) servers that expose AI capabilities (tools, prompts, sampling) and data resources to clients, facilitating AI agent orchestration and structured human-AI interaction.
mcp-client-laravel
Laravel-native client for interacting with Model Context Protocol (MCP) servers to discover and call tools, and access resources for AI agents.