
Aptly MCP Server
Enables AI assistants to manage Debian package repositories through natural language using the Aptly package management tool. Supports repository creation, package operations, snapshot management, publishing, and mirror synchronization.
README
Aptly MCP Server
A Model Context Protocol (MCP) server for managing Debian package repositories using the Aptly package repository management tool.
Overview
This MCP server provides AI assistants with direct access to Aptly functionality through standardized tools and resources. It enables natural language interaction with Debian package repositories, including creation, management, and publishing operations.
Features
MCP Tools
- aptly_create_repo: Create new local repositories
- aptly_list_repos: List all repositories with filtering options
- aptly_add_packages: Add packages to repositories from uploaded files
- aptly_search_packages: Search packages across repositories
- aptly_create_snapshot: Create snapshots from repositories or other snapshots
- aptly_publish_repo: Publish repositories/snapshots for apt consumption
- aptly_create_mirror: Create mirrors of remote repositories
- aptly_upload_files: Upload package files to the server
- aptly_list_mirrors: List all configured mirrors
- aptly_update_mirror: Update mirrors with latest packages
- aptly_delete_repo: Delete repositories with safety checks
MCP Resources
- repositories: Dynamic listing of all repositories with metadata
- packages: Searchable package databases across repositories
- mirrors: Remote mirror status and configuration
- publications: Published repository information and endpoints
- snapshots: Available snapshots with creation dates and descriptions
Installation
cd aptly-mcp
npm install
npm run build
Configuration
Environment Variables
export APTLY_API_URL=http://localhost:8080 # Default Aptly API endpoint
export APTLY_AUTH_TOKEN=your_token_here # Optional authentication token
Claude Desktop Configuration
Add to your claude_desktop_config.json
:
{
"mcpServers": {
"aptly": {
"command": "node",
"args": ["/path/to/aptly-mcp/build/index.js"],
"env": {
"APTLY_API_URL": "http://localhost:8080"
}
}
}
}
Remote Aptly Server
For remote Aptly servers with authentication:
{
"mcpServers": {
"aptly": {
"command": "node",
"args": ["/path/to/aptly-mcp/build/index.js"],
"env": {
"APTLY_API_URL": "https://aptly.example.com",
"APTLY_AUTH_TOKEN": "your-auth-token"
}
}
}
}
Usage Examples
Once configured with Claude Desktop, you can use natural language commands:
Repository Management
- "Create a new repository called 'production-packages' for production releases"
- "List all repositories and show their package counts"
- "Delete the 'test-repo' repository"
Package Operations
- "Add all .deb files from the 'uploads' directory to the 'main' repository"
- "Search for packages containing 'nginx' across all repositories"
- "Remove the 'old-package' from the 'main' repository"
Snapshot Management
- "Create a snapshot of the 'main' repository called 'v1.0-release'"
- "List all snapshots and their creation dates"
- "Create a merged snapshot from 'main' and 'contrib' repositories"
Publishing
- "Publish the 'main' repository to the 'stable' distribution"
- "Update the published 'testing' repository with the latest snapshot"
- "List all published repositories and their endpoints"
Mirror Management
- "Create a mirror of the Ubuntu main repository"
- "Update all mirrors to get the latest packages"
- "Show the status of the 'ubuntu-main' mirror"
Development
Building
npm run build
Testing
npm run inspector # Launch MCP inspector for testing
Watching for Changes
npm run watch
API Documentation
The server connects to Aptly's REST API. Ensure your Aptly instance is running with API enabled:
aptly api serve -listen=":8080"
Security Considerations
- Use Unix domain sockets instead of network ports in production
- Implement proper authentication for remote Aptly servers
- Consider using a reverse proxy with HTTPS for production deployments
- Validate all inputs to prevent injection attacks
License
MIT License
Recommended Servers
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.
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.
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.

VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
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.
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.

E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
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.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.