Prototype · Preview: every server in the official registry, synced every 30 minutes. Sign in with Google to write reviews.Prototype · updated every 30 min
PopNx MCPMCP servers for people who use AI · explained in plain words

Taxcode

by christianclaudioversion 1.4.0i★ 1iRuns on your computer
Registry nameio.github.christianclaudio/taxcode

How to install

What it does

MCP server for US Federal, territorial, and state tax law and compliance.

  • Connects Runs on your computer
  • Account or key Needs TAXCODE_API_KEY
  • Category Law & government data

Install

Pick the AI app you use, then copy the settings.

Passed 3/3 checks · Runs on your computer · ✓ Commands checked Nov 14, 2026

First: which AI do you use?

Pick your app and the steps appear below.

Works with Claude, with some setup first

You need a Taxcode key (create it on the maker’s site) · Install Python (uv) on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone

Let AI install it

Copy this message into a Claude chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Taxcode for Claude on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "taxcode": { "command": "uvx", "args": [ "mcp-server-taxcode" ], "env": { "TAXCODE_API_KEY": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For TAXCODE_API_KEY, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the Taxcode tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install uv (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    uv --version
    • A version number such as uv … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required

    Open the uv download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version

    Install once; it works for everything that needs uv

  2. Sign up and create a Taxcode key

    Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.

    How to get a key is in the maker’s README below

  3. Open the Claude desktop app’s settings file

    SettingsDeveloperEdit Config

  4. Paste these settings and save the file

    {
      "mcpServers": {
        "taxcode": {
          "command": "uvx",
          "args": [
            "mcp-server-taxcode"
          ],
          "env": {
            "TAXCODE_API_KEY": "your-value"
          }
        }
      }
    }

    Paste the key only into the app’s field, never into a chat or to anyone

  5. Quit Claude and open it again

  6. Try it

    Use Taxcode and tell me what you can do for me, then show me one thing

    ✓ If Claude says it is using Taxcode or shows a Taxcode tool in the answer, you are connected

3 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • TAXCODE_BASE_URL Optional REST base URL override · default https://api.example.com
  • TAXCODE_MCP_PROFILE Server profile (full, system, statutes, compliance, readonly, researcher, advisor) · default full
  • TAXCODE_MCP_READONLY Restrict server execution strictly to read-only inspection tools · default 0

Descriptions are as written by the maker.

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

ChatGPT cannot connect Taxcode yet

Taxcode runs on your computer, but ChatGPT can only connect servers that run on the web

What you can do instead

A · Use an app that can connect Taxcode

  • You need a Taxcode key (create it on the maker’s site) · Install Python (uv) on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
  • You need a Taxcode key (create it on the maker’s site) · Install Python (uv) on your computer first (one time)
  • You need a Taxcode key (create it on the maker’s site) · Install Python (uv) on your computer first (one time)
  • You need a Taxcode key (create it on the maker’s site) · Install Python (uv) on your computer first (one time)

B · Others in Law & government data that work with ChatGPT

Picked from the most used in the same category, only ones that connect by address with no key

Works with Claude Code, with some setup first

You need a Taxcode key (create it on the maker’s site) · Install Python (uv) on your computer first (one time)

Let AI install it

Copy this message into a Claude Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Taxcode for Claude Code on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): claude mcp add --scope user taxcode --env TAXCODE_API_KEY=your-value -- uvx mcp-server-taxcode 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For TAXCODE_API_KEY, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the Taxcode tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install uv (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    uv --version
    • A version number such as uv … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required

    Open the uv download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version

    Install once; it works for everything that needs uv

  2. Sign up and create a Taxcode key

    Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.

    How to get a key is in the maker’s README below

  3. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: open PowerShell

  4. Paste this command and press Enter

    claude mcp add --scope user taxcode --env TAXCODE_API_KEY=your-value -- uvx mcp-server-taxcode

    Replace “your-value” with your key before pressing Enter

    Paste the key only into the app’s field, never into a chat or to anyone

  5. Type /mcp in Claude Code

    You should see Taxcode listed as connected

  6. Try it

    Use Taxcode and tell me what you can do for me, then show me one thing

    ✓ If Claude Code says it is using Taxcode or shows a Taxcode tool in the answer, you are connected

3 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • TAXCODE_BASE_URL Optional REST base URL override · default https://api.example.com
  • TAXCODE_MCP_PROFILE Server profile (full, system, statutes, compliance, readonly, researcher, advisor) · default full
  • TAXCODE_MCP_READONLY Restrict server execution strictly to read-only inspection tools · default 0

Descriptions are as written by the maker.

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with Cursor, with some setup first

You need a Taxcode key (create it on the maker’s site) · Install Python (uv) on your computer first (one time)

Let AI install it

Copy this message into a Cursor chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Taxcode for Cursor on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "taxcode": { "command": "uvx", "args": [ "mcp-server-taxcode" ], "env": { "TAXCODE_API_KEY": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For TAXCODE_API_KEY, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the Taxcode tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install uv (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    uv --version
    • A version number such as uv … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required

    Open the uv download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version

    Install once; it works for everything that needs uv

  2. Sign up and create a Taxcode key

    Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.

    How to get a key is in the maker’s README below

  3. Click this button to open Cursor

    Open in Cursor

    Cursor asks you to confirm; click Install

  4. Fill in your key

    In the Taxcode settings, TAXCODE_API_KEY is empty; add your key and save

    Paste the key only into the app’s field, never into a chat or to anyone

  5. Open the AI chat in Cursor in Agent mode

  6. Try it

    Use Taxcode and tell me what you can do for me, then show me one thing

    ✓ If Cursor says it is using Taxcode or shows a Taxcode tool in the answer, you are connected

3 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • TAXCODE_BASE_URL Optional REST base URL override · default https://api.example.com
  • TAXCODE_MCP_PROFILE Server profile (full, system, statutes, compliance, readonly, researcher, advisor) · default full
  • TAXCODE_MCP_READONLY Restrict server execution strictly to read-only inspection tools · default 0

Descriptions are as written by the maker.

Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with VS Code, with some setup first

You need a Taxcode key (create it on the maker’s site) · Install Python (uv) on your computer first (one time)

Let AI install it

Copy this message into a VS Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Taxcode for VS Code on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "servers": { "taxcode": { "type": "stdio", "command": "uvx", "args": [ "mcp-server-taxcode" ], "env": { "TAXCODE_API_KEY": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For TAXCODE_API_KEY, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the Taxcode tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install uv (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    uv --version
    • A version number such as uv … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required

    Open the uv download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version

    Install once; it works for everything that needs uv

  2. Sign up and create a Taxcode key

    Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.

    How to get a key is in the maker’s README below

  3. Click this button to open VS Code

    Open in VS Code

    VS Code asks you to confirm; click Install

  4. Fill in your key

    In the Taxcode settings, TAXCODE_API_KEY is empty; add your key and save

    Paste the key only into the app’s field, never into a chat or to anyone

  5. Open the AI chat in VS Code in Agent mode

  6. Try it

    Use Taxcode and tell me what you can do for me, then show me one thing

    ✓ If VS Code says it is using Taxcode or shows a Taxcode tool in the answer, you are connected

3 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • TAXCODE_BASE_URL Optional REST base URL override · default https://api.example.com
  • TAXCODE_MCP_PROFILE Server profile (full, system, statutes, compliance, readonly, researcher, advisor) · default full
  • TAXCODE_MCP_READONLY Restrict server execution strictly to read-only inspection tools · default 0

Descriptions are as written by the maker.

Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.

See every app that uses MCP →

JSON settings are under “For developers” below

Stuck? Ask people who use Taxcode💬 Discussion →
For developers: Terminal commands and JSON settings

Installed on your computer

Claude Code

claude mcp add --scope user taxcode --env TAXCODE_API_KEY=your-value -- uvx mcp-server-taxcode

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "taxcode": {
      "command": "uvx",
      "args": [
        "mcp-server-taxcode"
      ],
      "env": {
        "TAXCODE_API_KEY": "your-value"
      }
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "taxcode": {
      "command": "uvx",
      "args": [
        "mcp-server-taxcode"
      ],
      "env": {
        "TAXCODE_API_KEY": "your-value"
      }
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "taxcode": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "mcp-server-taxcode"
      ],
      "env": {
        "TAXCODE_API_KEY": "your-value"
      }
    }
  }
}

Values you fill in

  • TAXCODE_API_KEY secret required env
    API token for service authentication
  • TAXCODE_BASE_URL env
    Optional REST base URL override
  • TAXCODE_MCP_PROFILE env
    Server profile (full, system, statutes, compliance, readonly, researcher, advisor)
  • TAXCODE_MCP_READONLY env
    Restrict server execution strictly to read-only inspection tools

Descriptions are as written by the maker.

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

At a glance

Downloads per weeki
108/wk
Licencei
Apache-2.0
Connection
Runs on your computer
Latest versioni
1.4.0
Published to registryi
Nov 13, 2026
Code last changedi
Nov 15, 2026
Maker
christianclaudio
Packages
pypi: mcp-server-taxcode
oci: ghcr.io/christianclaudio/mcp-server-taxcode:1.4.0
Registry status
Active

Which apps can use it

Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.

Run on your computer in

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

All apps, with pros and cons →

Related guides

What it can do

Runs on your computer; the tool list appears in your AI app after you install it.

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 16, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account christianclaudio, which owns the repo

  • ✓ Pass

    Still maintained

    Code last changed yesterday

  • ✓ Pass

    Has a licence

    Uses Apache-2.0

  • – Not applicable

    Endpoint responds

    This one runs on your computer; there is no internet endpoint

  • – Not applicable

    Sign-in with OAuth

    Runs on your computer and uses local settings instead

  • … Not checked yet

    No hidden instructions in tool descriptions

    Runs on your computer; we can only read tool lists from internet endpoints

Published vulnerabilities (OSV.dev)

No entries on OSV.dev for mcp-server-taxcode@1.4.0

Checks only this package version, not every dependency · checked Nov 15, 2026

What we check → · JSON

Makers: ask for a re-check or report wrong info

Discussion

Ask, share a tip or report that it does not work. Sorted by what people marked helpful.

No posts yet. Be the first to ask or share.

Posts here are written by users, not the PopNx team.

Sign in to post

User reviews

No reviews yet

Sign in to write a review

Compared with others in Law & government datai

  • More stars than 87% of the other 1877 servers in this category
  • Published to the registry more recently than 94% of the other 1877 servers in this category
  • Basic checks equal to or better than 100% of the other 1877 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is Taxcode safe?

It passed 3 of 3 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

You need to fill in: TAXCODE_API_KEY

Does it run on my computer or in the cloud?

It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).

Is it still maintained?

The GitHub repo last changed yesterday, and the latest version (1.4.0) reached the registry 3 days ago.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Python (uv), Docker on your computer.

What can I use instead?

In the same category: Global law, Open Legal Data (Germany), LibreJustice, InfraNode, Fedlex Connector

Similar alternatives

Same category, other makers, commands already checked. Official ones first, then by stars.

Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

Global law

The law of nearly every country on earth, any date: read it, see what changed it, check citations.

by lexifinaWidely used★ 2KUpdated 6 days ago

Runs in the cloud✓ lexifina.com

Open Legal Data (Germany)

German court decisions (Rechtsprechung) and laws (Gesetze) with citation graph and citation checks.

by openlegaldataGrowing★ 161Updated 5 days ago

Runs in the cloud✓ service owner · openlegaldata.io

LibreJustice

Search French-language and European case law and French legal texts (codes, statutes, treaties).

by librejusticeEarly★ 36Updated 2 months ago

Runs in the cloud✓ service owner · librejustice.fr

InfraNode

Keyless open data for 84 German cities: 12 lean read-only MCP tools covering 67 data types.

by street1983nkEarly★ 17Updated 4 months ago

Runs in the cloud✓ service owner · infranode.dev

Fedlex Connector

Search Swiss federal legislation: laws, articles, amendments via the Fedlex SPARQL endpoint.

by JayTheSkierEarly★ 8Updated 7 months ago

Runs in the cloud✓ service owner · fedlex-connector.ch
  • Global law — Runs in the cloud, nothing to install · No key needed
  • Open Legal Data (Germany) — Runs in the cloud, nothing to install · No key needed
  • LibreJustice — Runs in the cloud, nothing to install · No key needed
  • InfraNode — Runs in the cloud, nothing to install · No key needed
  • Fedlex Connector — Runs in the cloud, nothing to install · No key needed

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

📦 mcp-server-taxcode

Enterprise-grade Model Context Protocol (MCP) server for Federal, Territorial, and Multi-State Tax Law.

Reference statutory catalog covering United States Federal (IRC/CFR), Puerto Rico (Act 60/Ley 1), and all 50 US States + District of Columbia with computational residency and capital gains models.

[!WARNING]

NOT TAX OR LEGAL ADVICE / NO CONSTITUYE ASESORAMIENTO CONTRIBUTIVO NI LEGAL

EN: This software and its tools provide computational models, heuristic checks, and unofficial summaries for informational and research purposes only. Nothing returned by this server constitutes formal legal or tax advice, an official legal opinion, or audit representation. Unofficial translations and summaries are non-binding; official statutory and administrative sources in their enacted language control.

ES: Este software y sus herramientas proporcionan modelos computacionales, verificaciones heurísticas y resúmenes no oficiales únicamente para fines informativos y de investigación. Ninguna respuesta emitida por este servidor constituye asesoramiento legal o contributivo formal, una opinión legal oficial ni representación ante auditorías. Las traducciones y resúmenes no oficiales no son vinculantes; los textos estatutarios y administrativos oficiales promulgados en su idioma original prevalecen.


🏗️ Architecture: FastMCP 4 Server Composition

graph TD

Client["AI Agent / MCP Host (Claude, Cursor, Antigravity, Snowflake Cortex)"] Gateway["FastMCP Root Gateway (stdio / streamable-http)"] ParentMW["Parent Middleware (Audit Logging, Timing, Secret Redaction, ReadOnly Gate)"] SysSub["System Sub-server (mount: 'system') • system_get_health_status • taxcode://system/reference/capabilities"] StatSub["Statutes Sub-server (mount: 'statutes') • statutes_lookup_statute • statutes_search_tax_code • statutes_list_publications • taxcode://statutes/{jurisdiction}/{section*}"] CompSub["Compliance Sub-server (mount: 'compliance') • compliance_evaluate_pr_bona_fide_residency • compliance_calculate_built_in_gain_sourcing • compliance_evaluate_georgia_residency • compliance_evaluate_state_residency"] DuckDB["DuckDB In-Memory & File Engine (144 Statutes, 37 Publications, Full-Text Search, Temporal Versions)"]

Client <-->|"JSON-RPC (tools/list, tools/call)"| Gateway Gateway --> ParentMW ParentMW --> SysSub ParentMW --> StatSub ParentMW --> CompSub StatSub <-->|"Point-in-Time & Full-Text Queries"| DuckDB CompSub <-->|"Deterministic Statutory Calculations"| DuckDB


🚀 Key Features

  • Authoritative Multi-Jurisdiction Statutory Catalog:
  • Federal (`US`): IRC § 1, § 24, § 32, § 61, § 62, § 63, § 865, § 911, § 933, § 937, § 957, § 1411, § 6012, § 6688, 26 CFR § 1.937-1/2/3, and IRS publications (Pub. 17, Pub. 54, Pub. 501, Pub. 505, Pub. 570, Pub. 1321).
  • Puerto Rico (`PR`): Act 60-2019 (Resident Individual Investors, Export Services & Opportunity Zone definitions, Sec. 6020.10 annual reports), Ley 1-2011 (including Sec. 1031.02 exemptions and Sec. 1062.01 wage withholding and Sec. 1062.03 withholding on payments for services), Act 22-2012 predecessor versions, and administrative publications (CC RI 21-10, CC RI 25-12, CC RI 26-13, DA 21-04, DA 23-04, BI RI 26-02).
  • All 50 US States + District of Columbia: Comprehensive statutory definitions and tax computations covering no-income-tax states (AK, FL, NV, NH, SD, TN, TX, WA, WY), flat-tax regimes (AZ, CO, GA, ID, IL, IN, IA, KS, KY, MI, MS, NC, PA, UT), and graduated/surtax jurisdictions (AL, AR, CA, CT, DE, DC, HI, LA, ME, MD, MA, MN, MO, MT, NE, NJ, NM, NY, ND, OH, OK, OR, RI, SC, VT, VA, WV, WI) including Convenience of the Employer rules (NY, PA, NJ, CT, DE, NE) and local piggyback taxes (MD, IN, OH, NY).
  • Snippet Search, Full Text by Id: statutes_search_tax_code matches and ranks on the full text but returns a short snippet (up to 300 characters around the first matched term) plus each result's id, citation, title, jurisdiction, year, validity and content labels. Pass an id to statutes_lookup_statute as citation_or_section for the full text.
  • Bounded Responses with Paging: Every statutes tool result stays under 32,000 characters of JSON. statutes_lookup_statute returns long text in pages of up to 8,000 characters per text field (text_page gives the offset and full lengths; pass next_cursor back as page_cursor for the next page). statutes_search_tax_code and statutes_list_publications clamp limit to 1..25 items per call, with offset and next_offset for the next page. The taxcode://statutes/{jurisdiction}/{section*} resource (for example taxcode://statutes/US/933, or taxcode://statutes/IL/5/201 for a section id that contains /) uses the same 8,000-character pages and cap: a page that is not the last ends with the URI of the next one, which carries a ?page_cursor= query. The {section*} wildcard matches multi-segment section ids; a percent-encoded form such as 5%2F201 also works.
  • Versioned Data Files: Every statute and publication row lives in per-jurisdiction JSON under src/taxcode_mcp/data/ with a source record per row, and the docs under docs/ are generated from them (see CONTRIBUTING.md).
  • Temporal Statutory Versioning: Point-in-time statutory lookup with superseded_year filtering and descending historical ordering (tax_year parameter).
  • Deterministic Compliance Engines:
  • evaluate_pr_bona_fide_residency: Evaluates IRC § 937 presence (183-day, 549-day 3-year, 90-day US), tax home, and closer connection tests.
  • calculate_built_in_gain_sourcing: Allocates Section 937 / Act 60 capital gains across pre-move and post-move holding periods.
  • evaluate_state_residency: Multi-state statutory presence day-counter, permanent place of abode (PPA), domicile audit risk flags, and tax liability computation across all 50 US states and District of Columbia (51 jurisdictions total). Optional dependents, Mississippi spouse_agi (MFJ combined returns; even split of the filing-status exemption and standard deduction; ignored for other states), and Utah itemized_deductions (federal itemized deductions excluding state income tax) refine KS/MS/OH/GA/UT liability; defaults keep prior results.
  • Profiles & Opt-in ToolSearch:
  • Domain-mount profiles: full, system, statutes, compliance, readonly.
  • Job-shaped allowlist profiles: researcher (statutes + circulars), advisor (cross-border residency + BIG calculations).
  • Zero Tool Bloat: Exactly 8 lean, read-only MCP tools exposed with explicit MCP 2.0 annotations (readOnlyHint=True).

⚙️ Configuration

VariableCLI FlagDefaultDescription
TAXCODE_API_KEY—""Service API token for authentication
TAXCODE_BASE_URL—https://api.example.comUpstream REST API base URL
TAXCODE_MCP_READONLY—0Restrict server execution strictly to safe read-only inspection tools
TAXCODE_MCP_PROFILE--profilefullServer profile: full, system, statutes, compliance, readonly, researcher, advisor
TAXCODE_MCP_ENABLE_TOOL_SEARCH--enable-tool-search0Replace flat catalog with dynamic search meta-tools (profile=full only)
TAXCODE_MCP_ENABLE_CODE_MODE--enable-code-mode0Experimental Code Mode on full (requires code-mode extra)
TAXCODE_MCP_AUTH_TOKEN—""Shared bearer token for HTTP transports (streamable-http, sse)
TAXCODE_MCP_ALLOW_UNAUTHENTICATED_BIND—0Set to 1 (or true/yes/on) to let an HTTP transport bind a host other than 127.0.0.1, ::1 or localhost with no token. Without it, such a bind exits at startup
HTTP transports and authentication

Stdio is the default and needs no token. The HTTP transports follow the MCP guidance that a local server binds only to localhost and authenticates every connection:

  • On 127.0.0.1, ::1 or localhost (the --host default is 127.0.0.1), HTTP runs with or without TAXCODE_MCP_AUTH_TOKEN; without it, a warning says requests are not authenticated.
  • On any other host (0.0.0.0, ::, a LAN address), the server refuses to start unless TAXCODE_MCP_AUTH_TOKEN is set, or TAXCODE_MCP_ALLOW_UNAUTHENTICATED_BIND=1 accepts an unauthenticated bind (logged as a warning), for example behind a gateway that authenticates for you.
  • With a token set, every HTTP request needs Authorization: Bearer ; a missing or wrong token gets HTTP 401.
  • In the default (stateful) HTTP mode, a session idle for 30 minutes expires: its next request gets HTTP 404 and the client must start a new session. Change this with FastMCP's session_idle_timeout (on http_app()) or FASTMCP_HTTP_SESSION_IDLE_TIMEOUT (seconds, or none to never expire); see the FastMCP 4.1.0 release and #5229.
# Local HTTP, loopback only

taxcode-mcp --transport streamable-http

Public HTTP with a token

TAXCODE_MCP_AUTH_TOKEN="$(openssl rand -hex 32)" \ taxcode-mcp --transport streamable-http --host 0.0.0.0 --allowed-host mcp.example.com

Docker

The image's default command is stdio, so it works as a stdio server out of the box:

docker run -i --rm -e TAXCODE_API_KEY=your-api-key ghcr.io/christianclaudio/mcp-server-taxcode:latest

To serve Streamable HTTP from the container, bind 0.0.0.0 inside it and pass a token:

docker run --rm -p 8000:8000 \

-e TAXCODE_API_KEY=your-api-key \ -e TAXCODE_MCP_AUTH_TOKEN=your-long-random-token \ ghcr.io/christianclaudio/mcp-server-taxcode:latest \ --transport streamable-http --host 0.0.0.0 --port 8000 --allowed-host mcp.example.com


🔌 Integration Guides for AI Assistants & IDEs

This server works out-of-the-box with all major AI assistants, IDEs, and CLI tools via standard stdio or streamable-http.

The server is published on PyPI as mcp-server-taxcode, so you can run it directly with uvx mcp-server-taxcode without cloning or manually managing environments. Alternatively, run from a local clone with uv run --directory /path/to/mcp-server-taxcode taxcode-mcp.

🧡 Claude Desktop & Claude Code

Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

{

"mcpServers": { "taxcode": { "command": "uvx", "args": ["mcp-server-taxcode"] } } }

For local development from a clone:

{

"mcpServers": { "taxcode": { "command": "uv", "args": ["run", "--directory", "/absolute/path/to/mcp-server-taxcode", "taxcode-mcp"] } } }

For Claude Code CLI:

claude mcp add taxcode -- uvx mcp-server-taxcode

♊ Google Antigravity & Gemini CLI

Add to .agents/mcp_config.json (or global ~/.gemini/config/mcp_config.json):

{

"mcpServers": {

Only the beginning is shown; read the rest in the repo