A comprehensive Model Context Protocol (MCP) server for managing Vultr DNS records
Project description
🌐 Vultr DNS MCP
A comprehensive Model Context Protocol (MCP) server for managing Vultr DNS records with AI assistants and direct Python integration
Installation • Quick Start • Features • Documentation • Contributing
✨ Features
🤖 AI Assistant Integration
|
🐍 Python Developer Tools
|
🌐 Complete DNS Management
|
📊 Advanced Features
|
🚀 Quick Start
Get Your API Key
Get your Vultr API key from the Vultr Control Panel.
export VULTR_API_KEY="your_vultr_api_key_here"
🤖 AI Assistant Integration
Claude Integration
Add to your ~/.config/Claude/claude_desktop_config.json:
{
"mcpServers": {
"vultr-dns": {
"command": "uvx",
"args": ["vultr-dns-mcp"],
"env": {
"VULTR_API_KEY": "your_vultr_api_key_here"
}
}
}
}
🛠️ CLI Usage
The package includes a comprehensive CLI for all DNS operations:
# List domains
vultr-dns-mcp domains list
# Get domain information
vultr-dns-mcp domains info example.com
# Create a new domain
vultr-dns-mcp domains create example.com 192.168.1.100
# List DNS records
vultr-dns-mcp records list example.com
# Add DNS records
vultr-dns-mcp records add example.com A www 192.168.1.100
vultr-dns-mcp records add example.com MX @ mail.example.com --priority 10
# Set up a website
vultr-dns-mcp setup-website example.com 192.168.1.100
# Set up email
vultr-dns-mcp setup-email example.com mail.example.com
Available MCP Tools
The server provides comprehensive MCP resources and tools that any MCP-compatible client can discover and use:
| Tool | Description | Example Usage |
|---|---|---|
list_dns_domains() |
List all domains | "Show me all my domains" |
get_dns_domain(domain) |
Get domain details | "Get info for example.com" |
create_dns_domain(domain, ip) |
Create domain | "Create domain newsite.com" |
delete_dns_domain(domain) |
Delete domain | "Remove old.example.com" |
list_dns_records(domain) |
List records | "Show DNS records for mysite.com" |
create_dns_record(...) |
Create record | "Add A record for www" |
update_dns_record(...) |
Update record | "Change the IP for www" |
delete_dns_record(domain, record_id) |
Delete record | "Remove the CNAME record" |
validate_dns_record(...) |
Validate record | "Check this MX record" |
analyze_dns_records(domain) |
Analyze configuration | "Analyze DNS setup for mysite.com" |
📋 Supported DNS Record Types
| Type | Description | Example |
|---|---|---|
| A | IPv4 address | 192.168.1.100 |
| AAAA | IPv6 address | 2001:db8::1 |
| CNAME | Domain alias | example.com |
| MX | Mail server | mail.example.com (requires priority) |
| TXT | Text data | v=spf1 include:_spf.google.com ~all |
| NS | Name server | ns1.example.com |
| SRV | Service record | 0 5 443 example.com (requires priority) |
🧪 Development
Setup
# Clone the repository
git clone https://github.com/rsp2k/vultr-dns-mcp.git
cd vultr-dns-mcp
# Install development dependencies
pip install -e .[dev]
Running Tests
# Run all tests
pytest
# Run with coverage
pytest --cov=vultr_dns_mcp
# Run specific test file
pytest tests/test_server.py -v
Code Quality
# format
black check --diff
# lint
ruff check src/
# Type checking TODO
# mypy src
📖 Documentation
- API Documentation - Complete API reference
- MCP Protocol Guide - Understanding MCP
- Vultr API Docs - Vultr DNS API reference
🤝 Contributing
We welcome contributions! Please see our Contributing Guide for details.
Quick Contribution Setup
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Make your changes
- Test your changes (
pytest) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
📝 License
This project is licensed under the MIT License - see the LICENSE file for details.
🆘 Support
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Email: Support Email
🙏 Acknowledgments
- Vultr for providing an excellent DNS API
- Anthropic for the Model Context Protocol
- FastMCP for MCP framework inspiration
- All our contributors
Made with ❤️ by rsp2k
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vultr_dns_mcp-1.0.4.tar.gz.
File metadata
- Download URL: vultr_dns_mcp-1.0.4.tar.gz
- Upload date:
- Size: 23.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d57b9b9b1812fbc9e62a9c714482f702dc02396e23fc9376944137c6d040c4e
|
|
| MD5 |
bc8a577c25ea17e0257bf4be2d2036c7
|
|
| BLAKE2b-256 |
17d76afd9a6a1a75ccb7768cc71157c3ea7a711a9a6d9a5c196a0c98b65e6ebf
|
Provenance
The following attestation bundles were made for vultr_dns_mcp-1.0.4.tar.gz:
Publisher:
publish.yml on rsp2k/vultr-dns-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
vultr_dns_mcp-1.0.4.tar.gz -
Subject digest:
3d57b9b9b1812fbc9e62a9c714482f702dc02396e23fc9376944137c6d040c4e - Sigstore transparency entry: 236288268
- Sigstore integration time:
-
Permalink:
rsp2k/vultr-dns-mcp@aa796275988ad6dc897664b7cc77e64ec6251f83 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/rsp2k
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@aa796275988ad6dc897664b7cc77e64ec6251f83 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file vultr_dns_mcp-1.0.4-py3-none-any.whl.
File metadata
- Download URL: vultr_dns_mcp-1.0.4-py3-none-any.whl
- Upload date:
- Size: 16.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6afd56f527a06b1cec39a407922b2ab669c3eefe3c252a116c405e5c177a1ba7
|
|
| MD5 |
91b58f9cd83e83d7e2f2894d46bf09c4
|
|
| BLAKE2b-256 |
542222edb814db4381f5cb2a7acf3356f07f375b607872607dac8573113dfef4
|
Provenance
The following attestation bundles were made for vultr_dns_mcp-1.0.4-py3-none-any.whl:
Publisher:
publish.yml on rsp2k/vultr-dns-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
vultr_dns_mcp-1.0.4-py3-none-any.whl -
Subject digest:
6afd56f527a06b1cec39a407922b2ab669c3eefe3c252a116c405e5c177a1ba7 - Sigstore transparency entry: 236288282
- Sigstore integration time:
-
Permalink:
rsp2k/vultr-dns-mcp@aa796275988ad6dc897664b7cc77e64ec6251f83 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/rsp2k
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@aa796275988ad6dc897664b7cc77e64ec6251f83 -
Trigger Event:
workflow_dispatch
-
Statement type: