Percival Ubuntu

Percival Ubuntu

Percival Ubuntu is a security-focused MCP server for safe Ubuntu operations, optimized for the Nanobot agent. It enables file management and command execution under strict security policies.

Category
Visit Server

README

🤖 Percival Ubuntu - percival.OS MCP

Version 0.0.2

Python MCP percival.OS

📋 Description

Percival Ubuntu is a security-focused MCP server for safe Ubuntu operations, optimized specifically for the Nanobot agent. It allows file management and command execution under strict security policies.

This server is part of the percival.OS ecosystem, a Personal Agentic Operating System designed for autonomy, security, and absolute privacy.


🛡️ percival.OS Principles

Like all components of percival.OS, this MCP server strictly follows our core principles:

  • Privacy & Control: You define exactly which paths and commands the agent can access through policies (secure, dev).
  • Data Sovereignty: The agent operates locally on your Ubuntu host, without the need for external intermediaries for system management.
  • Hardened Security: Path traversal protection, command sanitization (shell injection blocking), and resource limits to prevent system exhaustion.
  • Transparency: Open-source and auditable, with detailed audit logs for every operation performed by the agent.

🚀 Features & Tools

File Operations

  • ubuntu_list_directory(path): List directory contents with metadata.
  • ubuntu_read_file(file_path): Read files with size validation.
  • ubuntu_write_file(file_path, content, ...): Atomic file writing.

System Operations

  • ubuntu_execute_command(command): Safe execution of allowed shell commands.
  • ubuntu_get_system_info(): Get OS, memory, and disk usage information.
  • ubuntu_get_server_status(): Returns uptime, active policy, and tool metrics.

Package Management

  • ubuntu_search_packages(query): Search APT repositories.
  • ubuntu_install_package(package_name): Check availability for installation.

⚙️ Configuration in percival.OS (Nanobot)

Add the following configuration to your ~/.nanobot/config.json:

{
  "tools": {
    "mcpServers": {
      "percival-ubuntu": {
        "command": "uv",
        "args": [
          "run",
          "--directory",
          "/path/to/percival-ubuntu-mcp",
          "percival-ubuntu-mcp",
          "--policy",
          "secure"
        ],
        "env": {
          "UBUNTU_MCP_RESPONSE_MODE": "compact",
          "UBUNTU_MCP_AUDIT_JSON": "true"
        }
      }
    }
  }
}

🛠️ Development & Testing

This project uses uv for dependency management.

# Sync environment
uv sync --dev

# Verify installation with internal tests
uv run python -m percival_ubuntu_mcp --test

# Test security measures
uv run python -m percival_ubuntu_mcp --security-test

📚 About the Project

This server is an integral module of the percival.OS project. It is an evolution of the original Secure Ubuntu MCP Server, optimized for system orchestration via Nanobot.


Developed with ❤️ by the percival.OS Team

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