US Codex

Federal law: US Code, CFR, public laws, bills and executive orders, cross-linked and versioned.

我該用這個嗎

品質與安全性

A
說明品質
90%
結構描述完整度
92%
命名品質
88%
汙染風險
100%
權限相符程度
100%
協定合規性
100%

發現項目(1)

  • LOWTool 'history' description lacks action verb在 history 中

根據工具定義與協定合規性的自動化分析。

上下文成本

~1,286Token(工具定義)
~1.8 KB典型回應大小
中等的注意力影響(128k 上下文的 1.00%)

這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。

安裝

一鍵安裝

將以下內容加入你的 `claude_desktop_config.json` 檔案:

{
  "mcpServers": {
    "uscodex": {
      "url": "https://uscodex.org/mcp"
    }
  }
}

遠端端點

https://uscodex.org/mcpstreamable-http
https://uscodex.org/mcp/ssesse

它能做什麼

工具清單

工具(5)

🟢 唯讀🟡 寫入🔴 刪除⚪ 未知
🟢search(corpus, date, page, query, title)

Search the full text of federal law: United States Code, Code of Federal Regulations, Public Laws, Congressional Bills, Executive Orders. Results are ranked across every corpus unless `corpus` narrows them, each with its citation, a link and the matching words. A query that is only a citation returns that document instead.

輸入結構描述

{
  "type": "object",
  "properties": {
    "corpus": {
      "description": "Search one corpus only.",
      "enum": [
        "usc",
        "cfr",
        "pl",
        "bills",
        "eo"
      ],
      "type": "string"
    },
    "date": {
      "description": "For a code, search it as it stood on this date (YYYY-MM-DD).",
      "type": "string"
    },
    "page": {
      "default": 1,
      "description": "Page of results, 20 to a page.",
      "type": "integer"
    },
    "query": {
      "description": "Words, a \"quoted phrase\", NOT before a word to exclude it, or a citation.",
      "type": "string"
    },
    "title": {
      "description": "For a code, search one title (\"11\", \"40\").",
      "type": "string"
    }
  },
  "required": [
    "query"
  ]
}
🟢fetch(citation, notes, path, provision, release)

Read a document or page of the site as markdown: a code section with its notes, a title's or unit's contents, a public law, a bill (at any version), an executive order. Paths also reach the corpus indexes ("/usc", "/pl?congress=118", "/bills?congress=119", "/eo") and each code's releases ("/usc/releases"). Links in the markdown are paths this tool accepts.

輸入結構描述

{
  "type": "object",
  "properties": {
    "citation": {
      "description": "A citation (\"26 U.S.C. 61(a)\", \"40 CFR 60.1\", \"Pub. L. 119-21\", \"H.R. 1\", \"E.O. 14000\"). Give this or `path`.",
      "type": "string"
    },
    "notes": {
      "default": true,
      "description": "Include a section's source credit, notes and footnotes.",
      "type": "boolean"
    },
    "path": {
      "description": "A page of the site, as its path or full URL (\"/usc/26/61\", \"/pl/119/21\"). Give this or `citation`.",
      "type": "string"
    },
    "provision": {
      "description": "Part of the document: in a code section, a provision and everything under it (\"a-1\" for (a)(1)) or a run of them (\"a..c\"); in a law, bill or order, a heading's {#anchor} (\"tI-stA-s10101\") or a provision under it (\"tI-stA-s10101-a\").",
      "type": "string"
    },
    "release": {
      "description": "For a code, the release to read it at: a release point (\"119-21\") or a date (YYYY-MM-DD) for the release in force then. Defaults to the latest.",
      "type": "string"
    }
  }
}
⚪citations(citation, list, offset, path)

What cites a document: each corpus's citations of a code section, law, bill or order, with the words that cite it, and for a statute the regulations issued under it. Lists come 50 at a time; `list` and `offset` page through one.

輸入結構描述

{
  "type": "object",
  "properties": {
    "citation": {
      "description": "A citation (\"26 U.S.C. 61(a)\", \"40 CFR 60.1\", \"Pub. L. 119-21\", \"H.R. 1\", \"E.O. 14000\"). Give this or `path`.",
      "type": "string"
    },
    "list": {
      "description": "One list only, by the corpus that cites.",
      "enum": [
        "code",
        "cfr-citations",
        "laws",
        "bills",
        "orders"
      ],
      "type": "string"
    },
    "offset": {
      "default": 0,
      "description": "With `list`, where in it to start.",
      "type": "integer"
    },
    "path": {
      "description": "A page of the site, as its path or full URL (\"/usc/26/61\", \"/pl/119/21\"). Give this or `citation`.",
      "type": "string"
    }
  }
}
⚪history(citation, path)

How a document came to be: for a code section, the laws that enacted and amended it and every release that changed its text; for a law or bill, its legislative history, each version linked to its text and to what changed from the one before.

輸入結構描述

{
  "type": "object",
  "properties": {
    "citation": {
      "description": "A citation (\"26 U.S.C. 61(a)\", \"40 CFR 60.1\", \"Pub. L. 119-21\", \"H.R. 1\", \"E.O. 14000\"). Give this or `path`.",
      "type": "string"
    },
    "path": {
      "description": "A page of the site, as its path or full URL (\"/usc/26/61\", \"/pl/119/21\"). Give this or `citation`.",
      "type": "string"
    }
  }
}
⚪compare(citation, from, only_edits, path, to)

What changed in a code section between two releases: each provision added, removed, changed or renumbered, the edits marked <del> and <ins>. To compare versions of a bill, take the 'what changed' link from its history.

輸入結構描述

{
  "type": "object",
  "properties": {
    "citation": {
      "description": "A citation (\"26 U.S.C. 61(a)\", \"40 CFR 60.1\", \"Pub. L. 119-21\", \"H.R. 1\", \"E.O. 14000\"). Give this or `path`.",
      "type": "string"
    },
    "from": {
      "description": "Release point or date to compare from. Defaults to the release before `to`.",
      "type": "string"
    },
    "only_edits": {
      "default": true,
      "description": "Only the provisions that changed, not the whole text.",
      "type": "boolean"
    },
    "path": {
      "description": "A page of the site, as its path or full URL (\"/usc/26/61\", \"/pl/119/21\"). Give this or `citation`.",
      "type": "string"
    },
    "to": {
      "description": "Release point or date to compare to. Defaults to the latest.",
      "type": "string"
    }
  }
}

社群

為此伺服器評分

證據

近期觀測

已驗證未記錄版本5 個工具
已驗證未記錄版本5 個工具