Kinsta MCP by usefulapi
Read Kinsta sites, environments, backups, logs and analytics; clear caches, restart PHP, back up.
我該用這個嗎
品質與安全性
發現項目(1)
- LOW在 kinsta_list_environment_domains 中
根據工具定義與協定合規性的自動化分析。
上下文成本
這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。
安裝
一鍵安裝
將以下內容加入你的 `claude_desktop_config.json` 檔案:
{
"mcpServers": {
"kinsta": {
"url": "https://kinsta.usefulapi.io/mcp"
}
}
}遠端端點
https://kinsta.usefulapi.io/mcpstreamable-http它能做什麼
工具清單
工具(23)
🟢kinsta_get_api_key_info
Details of the Kinsta API key in use: its name, status, expiry and the company id it belongs to. The key itself is never shown. GET /validate.
輸入結構描述
{
"type": "object",
"properties": {},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢kinsta_list_available_regions
The data center regions (name and region code) the company can host sites in. GET /company/{id}/available-regions.
輸入結構描述
{
"type": "object",
"properties": {},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢kinsta_list_activity_logs(limit, offset, category, site_id)
The company's activity log (who did what: site actions, DNS, migrations, billing, notifications, user management), newest first, with type, status, time, initiator and a description. Page with limit and offset (the reply's total tells how many exist). GET /company/{id}/activity-logs.
輸入結構描述
{
"type": "object",
"properties": {
"limit": {
"description": "Entries to return, 1-100 (default 10).",
"type": "integer",
"minimum": 1,
"maximum": 100
},
"offset": {
"description": "Entries to skip (default 0). Use offset + limit to page.",
"type": "integer",
"minimum": 0,
"maximum": 1000000
},
"category": {
"description": "Only this category.",
"type": "string",
"enum": [
"siteActions",
"kinstaDns",
"migrations",
"billing",
"notifications",
"userManagement",
"personalSettings",
"samlSso"
]
},
"site_id": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Only entries for this site id."
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢kinsta_list_sites(include_environments)
List the company's WordPress sites (id, name, display name, status, labels). With include_environments the live/staging environment ids, primary domain, PHP version, WordPress version and SSH host/port come too: use those environment ids for the other tools. GET /sites.
輸入結構描述
{
"type": "object",
"properties": {
"include_environments": {
"description": "Include each site's environments (default true).",
"type": "boolean"
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢kinsta_get_site(site_id)
One site by id, with its status and environments. GET /sites/{site_id}.
輸入結構描述
{
"type": "object",
"properties": {
"site_id": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Kinsta site id (a UUID; from kinsta_list_sites)."
}
},
"required": [
"site_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢kinsta_list_site_environments(site_id)
The environments (live, staging, ...) of one site: id, name, PHP engine version, WordPress version, primary domain, edge cache and CDN ids. GET /sites/{site_id}/environments.
輸入結構描述
{
"type": "object",
"properties": {
"site_id": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Kinsta site id (a UUID; from kinsta_list_sites)."
}
},
"required": [
"site_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢kinsta_get_site_usage(site_id, metric)
A site's usage for the current billing month: visits, bandwidth or CDN bandwidth. GET /sites/{site_id}/usage/{metric}/this-month.
輸入結構描述
{
"type": "object",
"properties": {
"site_id": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Kinsta site id (a UUID; from kinsta_list_sites)."
},
"metric": {
"type": "string",
"enum": [
"visits",
"bandwidth",
"cdn_bandwidth"
],
"description": "Which usage figure."
}
},
"required": [
"site_id",
"metric"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢kinsta_list_environment_domains(environment_id)
The domains attached to one environment (id, name, whether Kinsta DNS/Cloudflare is used). GET /sites/environments/{env_id}/domains.
輸入結構描述
{
"type": "object",
"properties": {
"environment_id": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Kinsta environment id (a UUID; from kinsta_list_sites with include_environments, or kinsta_list_site_environments)."
}
},
"required": [
"environment_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢kinsta_list_company_domains
All domains the company has in Kinsta DNS / hosting, across sites. GET /domains.
輸入結構描述
{
"type": "object",
"properties": {},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢kinsta_list_backups(environment_id)
The backups of one environment (manual, scheduled and system): id, name, note, type and creation time (epoch ms). Backups cannot be restored or deleted from here. GET /sites/environments/{env_id}/backups.
輸入結構描述
{
"type": "object",
"properties": {
"environment_id": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Kinsta environment id (a UUID; from kinsta_list_sites with include_environments, or kinsta_list_site_environments)."
}
},
"required": [
"environment_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢kinsta_list_plugins(environment_id)
The plugins of one environment: name, title, status (active/inactive), version, available update version, vulnerability flags and the auto-update type. GET /sites/environments/{env_id}/wp-plugins.
輸入結構描述
{
"type": "object",
"properties": {
"environment_id": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Kinsta environment id (a UUID; from kinsta_list_sites with include_environments, or kinsta_list_site_environments)."
}
},
"required": [
"environment_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢kinsta_list_themes(environment_id)
The themes of one environment: name, title, status, version, available update version and vulnerability flags. GET /sites/environments/{env_id}/wp-themes.
輸入結構描述
{
"type": "object",
"properties": {
"environment_id": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Kinsta environment id (a UUID; from kinsta_list_sites with include_environments, or kinsta_list_site_environments)."
}
},
"required": [
"environment_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢kinsta_get_logs(environment_id, file_name, lines, from, to, ...)
Recent lines of an environment's error log, access log or Kinsta cache performance log, optionally within a time range and filtered by a search text. Returns the log as text (the newest lines the API gives). Access logs contain visitor IP addresses. GET /sites/environments/{env_id}/logs.
輸入結構描述
{
"type": "object",
"properties": {
"environment_id": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Kinsta environment id (a UUID; from kinsta_list_sites with include_environments, or kinsta_list_site_environments)."
},
"file_name": {
"description": "Which log (default error).",
"type": "string",
"enum": [
"error",
"access",
"kinsta-cache-perf"
]
},
"lines": {
"description": "Number of lines, 1-2000 (default 200).",
"type": "integer",
"minimum": 1,
"maximum": 2000
},
"from": {
"description": "Only lines at or after this ISO 8601 date-time, e.g. 2026-10-01T00:00:00Z.",
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,9})?)?(Z|[+-]\\d{2}:\\d{2})$"
},
"to": {
"description": "Only lines at or before this ISO 8601 date-time.",
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,9})?)?(Z|[+-]\\d{2}:\\d{2})$"
},
"search": {
"description": "Only lines containing this text.",
"type": "string",
"minLength": 1,
"maxLength": 200
}
},
"required": [
"environment_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢kinsta_get_analytics(environment_id, metric, time_span, from, to, ...)
Traffic and resource analytics for one environment: visits, bandwidth, CDN bandwidth, disk space, response codes, visit dispersion, or the top countries, cities, browsers, hosts, referrers, user agents or ASNs. Choose a time_span or a from/to date range (yyyy-mm-dd). The company id is filled in automatically. GET /sites/environments/{env_id}/analytics/{metric}.
輸入結構描述
{
"type": "object",
"properties": {
"environment_id": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Kinsta environment id (a UUID; from kinsta_list_sites with include_environments, or kinsta_list_site_environments)."
},
"metric": {
"type": "string",
"enum": [
"visits",
"bandwidth",
"cdn_bandwidth",
"diskspace",
"response_codes",
"visits_dispersion",
"top_countries",
"top_cities",
"top_browsers",
"top_hosts",
"top_referrers",
"top_user_agents",
"top_asns"
],
"description": "Which analytics report."
},
"time_span": {
"description": "Period to report on: 24_hours, 7_days, 30_days or 60_days (default 7_days; disk space has no 24_hours).",
"type": "string",
"enum": [
"24_hours",
"7_days",
"30_days",
"60_days"
]
},
"from": {
"description": "Range start, yyyy-mm-dd (use with to).",
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
"to": {
"description": "Range end, yyyy-mm-dd.",
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
"time_zone": {
"description": "Only for metric diskspace: hour offset from UTC such as 02:00 or -05:00 (default 00:00).",
"type": "string",
"pattern": "^-?(0[0-9]|1[0-4]):00$"
}
},
"required": [
"environment_id",
"metric"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢kinsta_get_force_https_status(environment_id)
Whether the environment forces HTTPS (ENABLED_FOR_ALL, ENABLED_REDIRECT_TO_PRIMARY or DISABLED). GET /sites/environments/{env_id}/force-https-status.
輸入結構描述
{
"type": "object",
"properties": {
"environment_id": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Kinsta environment id (a UUID; from kinsta_list_sites with include_environments, or kinsta_list_site_environments)."
}
},
"required": [
"environment_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢kinsta_list_redirect_rules(environment_id, limit, offset, search)
The environment's redirect rules (from, to, type, domain, optional country/city targeting), paged. GET /sites/environments/{env_id}/redirect-rules.
輸入結構描述
{
"type": "object",
"properties": {
"environment_id": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Kinsta environment id (a UUID; from kinsta_list_sites with include_environments, or kinsta_list_site_environments)."
},
"limit": {
"description": "Rules to return, 1-100 (default 10).",
"type": "integer",
"minimum": 1,
"maximum": 100
},
"offset": {
"description": "Rules to skip (default 0).",
"type": "integer",
"minimum": 0,
"maximum": 1000000
},
"search": {
"description": "Only rules matching this text.",
"type": "string",
"minLength": 1,
"maxLength": 200
}
},
"required": [
"environment_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢kinsta_list_denied_ips(environment_id)
The IP addresses and ranges blocked from the environment. GET /sites/tools/denied-ips.
輸入結構描述
{
"type": "object",
"properties": {
"environment_id": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Kinsta environment id (a UUID; from kinsta_list_sites with include_environments, or kinsta_list_site_environments)."
}
},
"required": [
"environment_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢kinsta_get_operation_status(operation_id)
The status of an asynchronous operation (cache clear, PHP restart, manual backup, ...) by the operation_id the write tool returned. status 200 = finished, 202 = still running, other = failed. GET /operations/{operation_id}.
輸入結構描述
{
"type": "object",
"properties": {
"operation_id": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Operation id, e.g. sites:clear-cache-<uuid> (from the write tool's reply)."
}
},
"required": [
"operation_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴kinsta_clear_site_cache(environment_id)
WRITE: clear the page cache of one environment (the site is briefly slower while the cache warms up; nothing is lost). Returns an operation_id: check it with kinsta_get_operation_status. POST /sites/tools/clear-cache.
輸入結構描述
{
"type": "object",
"properties": {
"environment_id": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Kinsta environment id (a UUID; from kinsta_list_sites with include_environments, or kinsta_list_site_environments)."
}
},
"required": [
"environment_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴kinsta_clear_edge_cache(environment_id, url, clear_subdirectories)
WRITE: clear Kinsta's edge cache for one environment, optionally only for one URL (and its subdirectories). Nothing is lost; pages are cached again on the next visits. Returns an operation_id. POST /sites/edge-caching/clear.
輸入結構描述
{
"type": "object",
"properties": {
"environment_id": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Kinsta environment id (a UUID; from kinsta_list_sites with include_environments, or kinsta_list_site_environments)."
},
"url": {
"description": "Only clear this URL (leave empty to clear the whole environment).",
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"clear_subdirectories": {
"description": "With url: also clear the pages below it (default false).",
"type": "boolean"
}
},
"required": [
"environment_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴kinsta_clear_cdn_cache(environment_id, cdn_cache_id)
WRITE: clear the CDN cache of one environment (nothing is lost; files are fetched from the origin again). Needs the environment's cdn_cache_id from kinsta_list_sites. Returns an operation_id. POST /sites/cdn/clear-cache.
輸入結構描述
{
"type": "object",
"properties": {
"environment_id": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Kinsta environment id (a UUID; from kinsta_list_sites with include_environments, or kinsta_list_site_environments)."
},
"cdn_cache_id": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "The environment's cdn_cache_id (from kinsta_list_sites / kinsta_list_site_environments)."
}
},
"required": [
"environment_id",
"cdn_cache_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴kinsta_restart_php(environment_id)
WRITE: restart the PHP engine of one environment. Requests in flight fail and the site may be unavailable for a few seconds. Returns an operation_id. POST /sites/tools/restart-php.
輸入結構描述
{
"type": "object",
"properties": {
"environment_id": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Kinsta environment id (a UUID; from kinsta_list_sites with include_environments, or kinsta_list_site_environments)."
}
},
"required": [
"environment_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟡kinsta_create_manual_backup(environment_id, tag)
WRITE: start a manual backup of one environment, with an optional note. Kinsta limits the number of manual backups per environment; when the limit is reached the request fails and nothing is deleted. Returns an operation_id. POST /sites/environments/{env_id}/manual-backups.
輸入結構描述
{
"type": "object",
"properties": {
"environment_id": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Kinsta environment id (a UUID; from kinsta_list_sites with include_environments, or kinsta_list_site_environments)."
},
"tag": {
"description": "A short note for the backup (shown in MyKinsta).",
"type": "string",
"maxLength": 200
}
},
"required": [
"environment_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}社群
證據