1. Conduid
  2. Maps
  3. Keen Pbr
MCP server · Maps

Keen Pbr

keen-pbr is a Policy Based Routing toolkit for Keenetic and OpenWRT routers / Инструменты для выборочной маршрутизации на роутерах Keenetic и OpenWRT

59Fair

Scored 19 hours ago · breakdown

About Keen Pbr

Keen Pbr is an MCP server published by maksimkurb in the Maps category: keen-pbr is a Policy Based Routing toolkit for Keenetic and OpenWRT routers / Инструменты для выборочной маршрутизации на роутерах Keenetic и OpenWRT. Conduid read 21 tools from its source: add_domain_to_list, create_list, create_rule, delete_rule, diagnose, discard_config and 15 more. No package is published for it, so it installs from a source checkout.

The repository has 149 stars and 11 forks, and its last commit was on 22 Nov 2026. Conduid has no tagged release on record for it. Its topics include dnsmasq, entware, keen-pbr, keenetic, keenetic-pbr and keenetic-routers.

Install

From source
git clone https://github.com/maksimkurb/keen-pbr

Tools (21)

add_domain_to_listAdds one or more domains to a named list in the config draft (read-modify-write). Creates an inline list when it does not exist and create_if_missing is true. Duplicates are skipped; wildcards such as *.example.com are accepted. Nothing is persisted until save_config is called, unless save=true.
ParameterTypeDescription
create_if_missingbooleanCreate an inline list when it does not exist
domains *arrayDomains to add
list *stringList name (lowercase, digits, underscore; max 24 chars)
create_listCreates a new named list in the config draft from inline domains, IP CIDRs, a local file or a URL. At least one source is required. URL lists can be populated with refresh_lists after saving. Nothing is persisted until save_config, unless save=true.
ParameterTypeDescription
detourstringOutbound tag used to download a URL list
domainsarrayInline domains or *.wildcards
filestringPath to a local list file on the router
ip_cidrsarrayInline IP addresses or CIDRs
name *stringNew list name (lowercase, digits, underscore; max 24 chars)
ttl_msnumberPer-list dynamic set TTL floor in milliseconds
urlstringHTTP(S) URL of a remote list
create_ruleAppends (or prepends) a route rule to route.rules in the config draft. Typical use: route list Y via outbound Z. Rules are evaluated in order, so put catch-all default_gateway rules last. Outbound tags and list names are validated. Nothing is persisted until save_config, unless save=true.
ParameterTypeDescription
dest_addrstringDestination CIDR(s), comma separated or !-negated
dscpnumberDSCP value to match
enabledbooleanWhether the rule is active
listsarrayList names this rule matches; required unless another match condition is given
outbound *stringOutbound tag that matched traffic is routed through
positionstringInsert at the start or append at the end of route.rules
src_addrstringSource CIDR(s), comma separated or !-negated
delete_ruleRemoves a route rule from the config draft by 0-based index (see list_rules). Later rule indexes shift down by one. Lists and outbounds are left untouched. Nothing is persisted until save_config, unless save=true.
ParameterTypeDescription
index *number0-based rule index from list_rules
diagnoseOne-call health check. Reads service health, routing health, classified issues, runtime outbounds and interfaces, then returns a compact prioritised verdict: what is failing, which outbound/interface/list is affected, warning codes with human titles, and a suggested next step. Start here when routing is broken.
discard_configThrows away the staged in-memory draft and restores the last saved config (POST /api/config/discard). The saved file and running routing are not changed. Fails when there is no draft.
dns_check_serversProbes every DNS server of the applied config (not the staged draft) for known domains and reports working servers, servers that do not answer, and servers whose answers look tampered with (block-page addresses, false NXDOMAIN, made-up names resolving). Use it when DNS-based lists are empty or domains resolve to wrong addresses.
ParameterTypeDescription
custom_domainsarrayYour own domains; missing records are not warned about
domainsarrayDomains that certainly exist; an NXDOMAIN for them is suspicious
serversarrayServer tags to check; default all dns.servers
dns_testCollects events from the daemon's DNS test stream (GET /api/dns/test) for a bounded time window. Shows DNS/TLS-SNI/HTTP-Host/QUIC events and whether a domain matched a configured list, including list names, resolved IPs, set-add counts and hold time. An empty result means nothing matched in that window; test the domain from a LAN client while this runs. show=all requires API authentication.
ParameterTypeDescription
domainstringOptional marker domain to observe for the default view
duration_msnumberHow long to listen, in milliseconds
max_eventsnumberStop after this many events
showstringkeen-pbr: marker events only; all (alias full): every observed event
get_command_failureMost recent privileged-command failures from GET /api/diagnostics/command-failure. Returns a message when the daemon has no failure log. Useful after routing checks fail or a config apply reports an error.
get_configReads the editable config from GET /api/config. Without a section it returns the whole document plus is_draft. With a section it returns only that part. Edits are draft-then-save: this reflects the staged draft when one exists.
ParameterTypeDescription
sectionstringOptional config section to return instead of the whole document
get_healthRaw service health from GET /api/health/service: daemon version, OS, runtime state and reason, draft/rollback flags, lifecycle operation, interception and dnsmasq state. Use diagnose first for a prioritised summary.
get_metricsFetches /metrics and returns a summary instead of the raw dump: family/sample counts, build info, active rules, reload errors, and non-zero error counters or down probes. Use filter to inspect families whose name contains a substring (for example 'dns_proxy_upstream' or 'list'); matching samples are capped by max_samples.
ParameterTypeDescription
filterstringCase-insensitive substring of metric family names to include
max_samplesnumberMaximum number of matching samples to return when filter is set
get_runtime_interfacesSystem interface inventory from GET /api/runtime/interfaces: up/down state, carrier, operstate, IPv4/IPv6 addresses and Keenetic descriptions. Use it to check whether an outbound's interface exists and is up.
get_runtime_outboundsLive outbound and candidate-interface state from GET /api/runtime/outbounds: which outbound is healthy, degraded or unavailable, its active/backup members, latencies and mismatch details.
list_rulesCompact, indexed view of route rules, DNS rules, lists and outbound tags. Rule indexes are 0-based and are what update_rule and delete_rule expect. Use this before creating or editing a rule.
refresh_listsRe-downloads one URL-backed list, or every URL-backed list when name is omitted, from the applied config (POST /api/lists/refresh). When contents change and the runtime is active it is rebuilt automatically. Fails while a config draft exists, so save or discard the draft first.
ParameterTypeDescription
namestringList name; omit to refresh all URL-backed lists
remove_domain_from_listRemoves domains from a list's inline domains in the config draft (read-modify-write). A wildcard entry *.example.com and example.com are treated as the same domain. Lists backed only by a URL or file cannot be edited this way. Nothing is persisted until save_config, unless save=true.
ParameterTypeDescription
domains *arrayDomains to remove
list *stringList name
rollback_configRestores the previous config inode retained by the daemon after a failed apply (POST /api/config/rollback). Only available when get_health reports rollback_available=true. The rollback itself is asynchronous.
routing_testAsk the daemon where a domain or IP actually goes: POST /api/routing/test returns expected outbound (from config and cached lists), actual outbound (from live kernel sets), the matched list entry and rule index. Set include_rule_diagnostics to get the full rule-by-rule matrix.
ParameterTypeDescription
dest_portnumberOptional destination port
dscpnumberOptional DSCP value
include_rule_diagnosticsbooleanInclude the full per-rule diagnostics matrix (larger response)
protostringOptional packet protocol used to evaluate rules
src_addrstringOptional source IP address
src_portnumberOptional source port
target *stringDomain name or IP address to test, for example youtube.com or 1.1.1.1
save_configPersists the staged draft to disk and applies it to the running routing runtime (POST /api/config/save). This is the only step that makes earlier list/rule edits take effect. Waits for the apply lifecycle by default and reports the final status.
ParameterTypeDescription
wait_secondsnumberHow long to wait for the async apply to finish; 0 returns immediately
update_ruleUpdates fields of an existing route rule in the config draft by 0-based index (see list_rules). Only supplied fields are changed; pass null for an optional match field to remove it from the rule. Outbound tags, list names and the remaining match conditions are validated. Nothing is persisted until save_config, unless save=true.
ParameterTypeDescription
dest_addrstringNew destination CIDR(s); null removes it
dscpnumberNew DSCP match; null removes it
enabledbooleanEnable or disable the rule; null restores the active default
index *number0-based rule index from list_rules
listsarrayNew list names; null removes the list condition
outboundstringNew outbound tag
src_addrstringNew source CIDR(s); null removes it

Security checks

6 checks have not been run yet.

Questions

About Keen Pbr

How do I install Keen Pbr?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Keen Pbr safe to use with an AI agent?

Its trust score is 59 out of 100 (fair). Conduid hasn't run static security checks on this repository yet, so review the source yourself before granting it credentials. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Keen Pbr still maintained?

Yes — the last commit was 9 days ago. The repository has 149 stars and 11 forks.

What tools does Keen Pbr provide?

Conduid read 21 tools from the source: add_domain_to_list, create_list, create_rule, delete_rule, diagnose, discard_config, dns_check_servers, dns_test and 13 more. 13 of them publish their parameters, listed under Tools above.