Advanced MCP Server

Advanced MCP Server

Provides AI coding agents with a secure, sandboxed environment for executing coding tasks including file operations, command execution, and testing. Features session management, policy enforcement, and Docker-based sandboxing for safe code execution and development workflows.

Category
Visit Server

README

Advanced MCP Server

An implementation of the Model Context Protocol (MCP) server that provides AI coding agents with a secure, flexible, and extensible environment for executing coding tasks.

Features

  • Session Management
  • Resource Management
  • Sandboxed Tool Execution
  • Policy Engine
  • Multi-Agent Collaboration
  • Extensible Tooling
  • Rate Limiting
  • Custom Tools (Code Analysis, Testing, Documentation)

Getting Started

Prerequisites

  • Node.js 18+
  • Docker (optional, for enhanced sandboxing)
  • Docker Compose (optional)

Installation

  1. Clone the repository
  2. Install dependencies:
    npm install
    

Development

To start the development server:

npm run dev

To start with Docker:

docker-compose up

Building

To build the TypeScript code:

npm run build

Testing

To run tests:

npm test

To run tests with coverage:

npm run test:coverage

API Documentation

Detailed API documentation is available in the following formats:

Using with Qwen Code

The MCP Server is designed to work seamlessly with Qwen Code. After starting the server:

  1. Start the server:

    npm run dev
    
  2. Configure Qwen Code to use the MCP server by creating a .qwen/settings.json file:

    {
      "mcpServers": {
        "local-fullstack-mcp": {
          "name": "Local Fullstack MCP Server",
          "transport": "http",
          "url": "http://localhost:8080",
          "default": true
        }
      }
    }
    
  3. Initialize a session:

    curl -X POST http://localhost:8080/session/init \
      -H "Content-Type: application/json" \
      -d '{"tools": ["readFile", "writeFile", "runCommand", "listFiles"]}'
    
  4. Use the session ID with Qwen Code commands to perform operations in a secure, sandboxed environment.

See the Qwen CLI Integration Guide for detailed instructions.

Architecture

The MCP server follows a modular architecture with the following components:

  • MCP Gateway - Accepts connections (gRPC + WebSocket for streaming)
  • Session Manager - Handles authentication, session lifecycle, and capability negotiation
  • Resource Manager - File system abstraction with policy enforcement
  • Execution Manager - Runs commands/tools inside sandboxed runtimes (Docker)
  • Policy Engine - Enforces access rules and maintains audit logs
  • Audit Log - Immutable logging system for accountability
  • Sandbox Runtime - Docker containers with controlled resources
  • Workspace Storage - Persistent project storage (bind-mounted or virtual FS)

Security

  • Sandboxed execution using Docker containers
  • Resource policy enforcement
  • Audit logging for all actions
  • Capability negotiation
  • Rate limiting
  • Policy-based access control

License

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured