Skip to main content

MCP Server for Tencent Cloud DNSPod

Project description

Tencent Cloud DNS MCP Server

The Tencent Cloud DNS MCP server is implemented to manage authoritative DNS domains, records and obtain DNS resolution statistics.

Features

  • DNS domains Management:: Full lifecycle management, including creating, starting, stopping, and deleting DNS domains.
  • Record Management: Obtain current records and perform operations such as creating, modifying, starting, stopping, and deleting records.
  • DNS resolution statistics: Obtain DNS resolution statistics for a domain or specified subdomains.

API List

DescribeDomainList

Get the list of domains.

Input Parameters:

  • Type (string, optional): The domain group type.
  • Offset (integer, optional): Offset, default 0.
  • Limit (integer, optional): Number of results, default 20, max 100.
  • GroupId (integer, optional): Group ID, which can be passed in to get all domains in the specified group.
  • Keyword (integer, optional) Keyword for searching for a domain.
  • Tags (array[string], optional): Filter by Tags.

CreateDomain

Create a domain.

Input Parameters:

  • Domain (string): Domain.
  • GroupId (integer, optional): Group ID, which can be passed in to get all domains in the specified group.
  • Tags (array[string], optional): Bind tags for domain.

DeleteDomain

delete a domain.

Input Parameters:

  • Domain (string): Domain.
  • DomainId (integer, optional): The domain ID.

ModifyDomainStatus

Modify the status of a domain.

Input Parameters:

  • Domain (string): Domain.
  • Status (string): Domain status. Valid values: enable; disable.
  • DomainId (integer, optional): The domain ID.

DescribeRecordList

Modify the status of a domain.

Input Parameters:

  • Domain (string): Domain.
  • DomainId (string, optional): The ID of the domain whose DNS records are requested.
  • SubDomain (string, optional): The host header of a DNS record.
  • RecordType (string, optional): The type of DNS record.
  • RecordLine (string, optional): The name of the split zone for which DNS records are requested.
  • RecordLineId (string, optional): The ID of the split zone for which DNS records are requested.
  • GroupId (integer, optional): The group ID passed in to get DNS records in the group.
  • Keyword (string, optional): The keyword for searching for DNS records.
  • SortField (string, optional): The sorting field.
  • SortType (string, optional): The sorting type.
  • Offset (integer, optional): The offset.
  • Limit (integer, optional): The limit.

CreateRecord

Add a record.

Input Parameters:

  • Domain (string): Domain.
  • RecordType (string): The type of DNS record.
  • RecordLine (string): The record line.
  • Value (string): Record value.
  • DomainId (integer, optional): Domain ID.
  • SubDomain (string, optional): Host record such as www.
  • RecordLineId (string, optional): The record line ID, like 10=1.
  • MX (integer, optional): MX priority.
  • TTL (integer, optional): TTL.
  • Weight (string, optional): Weight information.
  • Status (string, optional): Initial status of the record.
  • Remark (string, optional): The remark of record.
  • DnssecConflictMode (string, optional): The conflict mode of dnssec and cname/url.
  • GroupId (integer, optional): The group ID.

ModifyRecord

modify a record.

Input Parameters:

  • Domain (string): Domain.
  • RecordType (string): The type of DNS record.
  • RecordLine (string): The record line.
  • Value (string): Record value.
  • RecordId (string): The record ID.
  • DomainId (integer, optional): Domain ID.
  • SubDomain (string, optional): Host record such as www.
  • RecordLineId (string, optional): The record line id, like 10=1.
  • MX (integer, optional): MX priority.
  • TTL (integer, optional): TTL.
  • Weight (string, optional): Weight information.
  • Status (string, optional): Initial status of the record.
  • Remark (string, optional): The remark of record.
  • DnssecConflictMode (string, optional): The conflict mode of dnssec and cname/url.

DeleteRecord

delete a record.

Input Parameters:

  • Domain (string): Domain.
  • RecordId (string): The record ID.
  • DomainId (integer, optional): Domain ID.

ModifyRecordStatus

modify a record status.

Input Parameters:

  • Domain (string): Domain.
  • RecordId (string): The record ID.
  • Status (string): Record status.
  • DomainId (integer, optional): Domain ID.

DescribeRecordLineCategoryList

get record lines by domain.

Input Parameters:

  • Domain (string): Domain.
  • DomainId (integer, optional): Domain ID.

DescribeRecordLineList

get record lines by domain and domain grade .

Input Parameters:

  • Domain (string): Domain.
  • DomainGrade (string): Domain grade.
  • DomainId (integer, optional): Domain ID.

DescribeDomainAnalytics

get dns resolution statistics of domain.

Input Parameters:

  • Domain (string): Domain.
  • StartDate (string): Start Date, Format: YYYY-MM-DD.
  • EndDate (string): End Date, Format: YYYY-MM-DD.
  • DnsFormat (string): Format type, Date/Hour.
  • DomainId (integer, optional): Domain ID.

DescribeSubdomainAnalytics

get dns resolution statistics of subdomain.

Input Parameters:

  • Domain (string): Domain.
  • StartDate (string): Start Date, Format: YYYY-MM-DD.
  • EndDate (string): End Date, Format: YYYY-MM-DD.
  • Subdomain (string): Host record such as www.
  • DnsFormat (string): Format type, Date/Hour.
  • DomainId (integer, optional): Domain ID.

Configuration

Set Tencent Cloud Credentials

  1. Obtain SecretId and SecretKey from Tencent Cloud Console
  2. Set default region (optional)

Environment Variables

Configure the following environment variables:

  • TENCENTCLOUD_SECRET_ID: Tencent Cloud SecretId
  • TENCENTCLOUD_SECRET_KEY: Tencent Cloud SecretKey
  • TENCENTCLOUD_REGION: Default region (optional)

Usage in Claude Desktop

Add the following configuration to claude_desktop_config.json:

{
  "mcpServers": {
    "tencent-dnspod": {
      "command": "uv",
      "args": [
        "run",
        "mcp-server-dnspod"
      ],
      "env": {
        "TENCENTCLOUD_SECRET_ID": "YOUR_SECRET_ID_HERE",
        "TENCENTCLOUD_SECRET_KEY": "YOUR_SECRET_KEY_HERE",
        "TENCENTCLOUD_REGION": "YOUR_REGION_HERE"
      }
    }
  }
}

Installation

pip install mcp-server-dnspod

License

MIT License. See LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_server_dnspod-0.1.1.tar.gz (29.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_server_dnspod-0.1.1-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file mcp_server_dnspod-0.1.1.tar.gz.

File metadata

  • Download URL: mcp_server_dnspod-0.1.1.tar.gz
  • Upload date:
  • Size: 29.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for mcp_server_dnspod-0.1.1.tar.gz
Algorithm Hash digest
SHA256 973114adc767b95e432ee357c40ddfc6127f4b88ccd5768ce9ef0801cf7bea18
MD5 808fc263c004db7b0f2171ff30f8b2d0
BLAKE2b-256 193ea12d99fb70e4efb31015f573ed28e3a229f502d08103625ef8a582d82db8

See more details on using hashes here.

File details

Details for the file mcp_server_dnspod-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_server_dnspod-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b1563165ef924889dbea8759457ecd47a166a96c3a8fbcb2d257e140727cc08a
MD5 db9ed8d0da1d0687715ff8a9d20c8d2c
BLAKE2b-256 c126111d3fc4ad3b52e8ed6878ca0dd3d1bf753b0ff0f16b67e21c7850bfef4d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page