# Pennsylvania Code [Health: Active]

**Category:** ⚖️ Legal  
**Repository:** https://github.com/pipeworx-io/mcp-pennsylvania-code  
**GitHub Stars:** 0  
**npm Downloads (last month):** 663  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/pennsylvania-code

## Description
Pennsylvania Consolidated Statutes — state statutes by citation.

## Tools
Capabilities this server exposes over MCP:

- **pa_consolidated_statute** — Get the FULL TEXT of a section of the Pennsylvania Consolidated Statutes — Pennsylvania state law — by citation. "18 Pa.C.S. 2502" is murder; "75 Pa.C.S. 3802" is DUI. Returns the statutory text. Keyless. Use for "what does 18 Pa.C.S. 2502 say" or to check a Pennsylvania statute a case relies on.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "pennsylvania-code": {
    "command": "npx",
    "args": ["-y","@pipeworx/mcp-pennsylvania-code"],
    "env": {
      "PIPEWORX_API_KEY": "",
      "PIPEWORX_META_TOOLS": "",
      "NODE_USE_ENV_PROXY": ""
    }
  }
}
```

**Requires environment variables:** `PIPEWORX_API_KEY`, `PIPEWORX_META_TOOLS`, `NODE_USE_ENV_PROXY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## 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:

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

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

```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.

_Full upstream README: https://allmcps.com/mcp/pennsylvania-code/readme_

