# PEG rule count, body discarded

> PEG rule count, body discarded is an MCP server for developer tools. Remote MCP endpoint that counts PEG rules in a grammar and discards the body. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Platforms:** API
- **Repository:** https://github.com/sadri-dridi/named-mcp-utilities
- **MCP Registry name:** io.github.sadri-dridi/peg-ok
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-18

## About

This server is one entry in a collection of small, single-purpose utility endpoints published under the same GitHub account. Its registry description says it returns a PEG rule count and discards the body, which suggests the grammar text is not retained after counting.

It runs as a hosted streamable-http remote rather than an installable package, so an MCP client connects to the URL directly with nothing to run locally. The README lists it only by name and registry ID, without documenting tool names, parameters or output format.

The repository is a directory of independently listed utility servers, and the same README also lists promotional endpoints for an ad placement service. Developers should check the endpoint's behaviour themselves before sending any sensitive grammar content to it.

## Features

- **PEG rule counting:** Reports how many rules a parsing expression grammar contains.
- **Body discarded:** The registry description states the submitted body is discarded after the count.
- **Hosted remote endpoint:** Available over streamable-http with no local installation.
- **Registry-listed:** Published in the MCP registry as io.github.sadri-dridi/peg-ok.

## Good for

- Quickly check the size of a PEG grammar from an AI client
- Let an agent sanity-check grammar complexity during parser work
- Test a minimal remote MCP integration over streamable-http

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http peg-ok https://agent-observatory-sensor.nolimit-observatory.workers.dev/s/peg-ok/mcp
```

### Claude Desktop (Settings → Connectors → Add custom connector)

```sh
https://agent-observatory-sensor.nolimit-observatory.workers.dev/s/peg-ok/mcp
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "peg-ok": {
      "url": "https://agent-observatory-sensor.nolimit-observatory.workers.dev/s/peg-ok/mcp"
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "peg-ok": {
      "type": "http",
      "url": "https://agent-observatory-sensor.nolimit-observatory.workers.dev/s/peg-ok/mcp"
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "peg-ok": {
      "serverUrl": "https://agent-observatory-sensor.nolimit-observatory.workers.dev/s/peg-ok/mcp"
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "peg-ok": {
      "type": "http",
      "url": "https://agent-observatory-sensor.nolimit-observatory.workers.dev/s/peg-ok/mcp"
    }
  }
}
```

## FAQ

### How do I connect to it?

Use the streamable-http remote URL from the registry entry: https://agent-observatory-sensor.nolimit-observatory.workers.dev/s/peg-ok/mcp.

### Does it need to be installed locally?

No. The registry entry lists no packages, only a hosted remote.

### What does it do with the input?

Its description says it returns a PEG rule count and discards the body.

### Which tools does it expose?

The available content does not list tool names.

### How do I add PEG rule count, body discarded to Claude Code?

Run this command in your terminal: claude mcp add --transport http peg-ok https://agent-observatory-sensor.nolimit-observatory.workers.dev/s/peg-ok/mcp

### What are the best alternatives to PEG rule count, body discarded?

The closest alternatives to PEG rule count, body discarded are Yacc rule count, body discarded, Lex rule count, body discarded, punctuation count, text discarded, protobuf3 message count, body discarded and SCSS rule count, body discarded.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Yacc rule count, body discarded](https://ai-powered.com/mcp/yacc-rule-count-body-discarded): Yacc rule count, body discarded is an MCP server for developer tools.
- [Lex rule count, body discarded](https://ai-powered.com/mcp/lex-rule-count-body-discarded): Lex rule count, body discarded is an MCP server for developer tools.
- [punctuation count, text discarded](https://ai-powered.com/mcp/punctuation-count-text-discarded): punctuation count, text discarded is an MCP server for developer tools.
- [protobuf3 message count, body discarded](https://ai-powered.com/mcp/protobuf3-message-count-body-discarded): protobuf3 message count, body discarded is an MCP server for developer tools.
- [SCSS rule count, body discarded](https://ai-powered.com/mcp/scss-rule-count-body-discarded): SCSS rule count, body discarded is an MCP server for developer tools.
- [TriG graph-brace count, body discarded](https://ai-powered.com/mcp/trig-graph-brace-count-body-discarded): TriG graph-brace count, body discarded is an MCP server for developer tools.
- [Percent-triplet count, input discarded](https://ai-powered.com/mcp/percent-triplet-count-input-discarded): Percent-triplet count, input discarded is an MCP server for developer tools.
- [XML plist dict count, body discarded](https://ai-powered.com/mcp/xml-plist-dict-count-body-discarded): XML plist dict count, body discarded is an MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/peg-rule-count-body-discarded
