Pennsylvania Code logo

Pennsylvania Code

Retrieve full Pennsylvania Consolidated Statutes text by citation through MCP or HTTP, without an API key.

Install Pennsylvania Code

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "pennsylvania-code": {
      "command": "npx",
      "args": [
        "-y",
        "@pipeworx/mcp-pennsylvania-code"
      ],
      "env": {
        "PIPEWORX_API_KEY": "YOUR_VALUE_HERE",
        "PIPEWORX_META_TOOLS": "YOUR_VALUE_HERE",
        "NODE_USE_ENV_PROXY": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env PIPEWORX_API_KEY=YOUR_VALUE_HERE --env PIPEWORX_META_TOOLS=YOUR_VALUE_HERE --env NODE_USE_ENV_PROXY=YOUR_VALUE_HERE --transport stdio pennsylvania-code -- npx -y @pipeworx/mcp-pennsylvania-code

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We hit an unexpected error while testing this listing automatically.

npx -y @pipeworx/mcp-pennsylvania-code

Rate limit exceeded, please try again later - you have reached the maximum number of concurrent E2B sandboxes (20). If you need more, please visit 'https://e2b.dev/docs/billing'

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

Pennsylvania Code is an MCP server for retrieving the full text of Pennsylvania Consolidated Statutes by title and section citation. Its resolver converts citations such as 18 Pa.C.S. 2502 into the legacy Pennsylvania General Assembly URL format needed to fetch statute HTML. The keyless hosted endpoint works with MCP clients, while an npm stdio bridge forwards requests to the same gateway. Reach for it when an agent needs to read or verify a Pennsylvania statute in a legal research workflow.

Use cases

  • Retrieve the text of a Pennsylvania statute cited in a case
  • Verify a Pennsylvania title and section reference
  • Look up criminal or vehicle-code provisions by citation
  • Ask an agent to route a statute question through Pipeworx

Key features

  • Full-text Pennsylvania statute lookup by citation
  • Automatic chapter and section URL resolution
  • Keyless hosted MCP access
  • Local npm stdio bridge
  • Direct HTTP tool invocation
  • 404 responses for nonexistent statutes

Tools1

What Pennsylvania Code lets your agent do. Expand a tool for its parameters.

Verified live~162 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

14/14 checks healthy over the last 60d

What it can do

From the 1 tool this server returned when we ran it.

Read-only tools · 1
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceSigned build
Package age24 days
Maintainers1

Observed 2026-10-18 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 3d ago via OSV.dev · @pipeworx/mcp-pennsylvania-code (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads663Package downloads in the last 30 days.
Last commit26d agoMost recent push to the default branch.
Install checkInconclusiveWe hit an unexpected error running the automated check.
Tools exposed1Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Pennsylvania Code works

What Pennsylvania Code does

Pennsylvania Code exposes Pennsylvania Consolidated Statutes as an MCP tool for citation-based lookup. The main tool, pa_consolidated_statute, accepts a title and section and returns the full statutory text. For example, title 18 and section 2502 identify the Pennsylvania murder statute, while title 75 and section 3802 identify the DUI statute.

The source is the Pennsylvania General Assembly, and the statutes are public records. This makes the server suitable for retrieving the text of a cited provision rather than searching broadly across legal sources. It belongs in legal research flows that need the wording of a Pennsylvania statute relied on by a case, memorandum, or question.

How it works

A Pennsylvania section number conceals a chapter and must be transformed into the URL structure used by the underlying source. The server handles that conversion and zero-padding automatically. It uses the older legis.state.pa.us path because the newer palegis.us interface renders its content client-side instead of returning the statute HTML directly.

The hosted MCP endpoint is:

text
https://gateway.pipeworx.io/pennsylvania-code/mcp

The same gateway also offers a full endpoint at https://gateway.pipeworx.io/mcp. A scoped hosted connection lists the Pennsylvania tool along with shared Pipeworx meta-tools, including ask_pipeworx, discover_tools, search_within, and memory tools. The exact tool scope is reported during MCP initialization.

Setup and configuration

Add the hosted endpoint to an MCP client such as Claude Desktop, Cursor, or Windsurf:

config.json
{
  "mcpServers": {
    "pennsylvania-code": {
      "url": "https://gateway.pipeworx.io/pennsylvania-code/mcp"
    }
  }
}

For a local stdio connection, run the npm package with npx:

config.json
{
  "mcpServers": {
    "pennsylvania-code": {
      "command": "npx",
      "args": ["-y", "@pipeworx/mcp-pennsylvania-code"]
    }
  }
}

The npm bridge requires network access and has no offline mode. Anonymous use is capped at 50 calls per day. A free Pipeworx account increases the limit to 200 calls per day; provide its key as PIPEWORX_API_KEY. Set PIPEWORX_META_TOOLS=1 when the local bridge should also list the shared gateway tools. Behind an HTTPS proxy, newer Node releases can use the proxy when NODE_USE_ENV_PROXY=1 is enabled.

Tools and capabilities

  • pa_consolidated_statute: retrieves full statutory text by Pennsylvania title and section.
  • Hosted MCP access through a streamable HTTP endpoint.
  • Local stdio access through @pipeworx/mcp-pennsylvania-code.
  • Direct HTTP tool calls through POST /v1/tools/pa_consolidated_statute.
  • Plain-language routing through the shared ask_pipeworx tool.

Limitations and notes

An invalid or nonexistent statute produces an HTTP 404 rather than a successful response with empty or misleading content. The server is an independent, unofficial integration and is not affiliated with, endorsed by, or published by the Pennsylvania General Assembly. Hosted and npm usage depend on network access. The npm bridge forwards calls to the Pipeworx gateway, so its calls use the gateway's authentication, metering, and billing behavior.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Pennsylvania Code

Pennsylvania Code is an MCP server that connects AI agents to Pennsylvania Consolidated Statutes from the Pennsylvania General Assembly. Its main tool, pa_consolidated_statute, retrieves the full text of a provision by title and section, such as 18 Pa.C.S. 2502 or 75 Pa.C.S. 3802, without requiring an API key.

Run the npm package through npx in your MCP client's server configuration. Use command npx with args -y and @pipeworx/mcp-pennsylvania-code. The bridge forwards requests to the hosted gateway and requires network access.

Call pa_consolidated_statute with the statute title and section, such as title 18 and section 2502. The tool resolves the citation format and returns the full statutory text.

Yes, Pennsylvania Code can be added to Cursor using its hosted MCP URL. Configure https://gateway.pipeworx.io/pennsylvania-code/mcp as the server endpoint.

Yes, send an HTTP POST request to the gateway's v1/tools/pa_consolidated_statute endpoint with title and section in a JSON body. Initial anonymous use does not require an account or key.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewPennsylvania Code AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/pennsylvania-code?style=directory)](https://allmcps.com/mcp/pennsylvania-code)
HTML Embed
<a href="https://allmcps.com/mcp/pennsylvania-code"><img src="https://allmcps.com/api/badge/pennsylvania-code?style=directory" alt="Pennsylvania Code on AllMCPs" /></a>