# Lex rule count, body discarded

> Lex rule count, body discarded is an MCP server for developer tools. Remote MCP utility that counts grammar rules in input 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/lex-ok
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-18

## About

This server is one of many small single-purpose utilities published from the named-mcp-utilities repository, each registered under its own name in the official MCP registry. Its registry description says it reports a count of Lex rules and discards the body it receives.

It runs as a remote streamable-http endpoint hosted on a Cloudflare Workers domain, with no installable package. An MCP client connects to the URL and calls it directly. The README does not document the exact tool names, input format or output shape, so details would need to be checked by connecting to the server.

The repository's README describes these servers as public MCP servers aimed at autonomous clients. It also lists related servers that route agents to an advertising service, so this entry may be part of a wider agent-discovery effort.

## Features

- **Lex rule counting:** Returns a count of rules according to its registry description, without keeping the submitted body.
- **Body discarded:** The description states that the submitted content is not retained after the count is produced.
- **Remote streamable-http:** Connects over a hosted streamable-http endpoint, so nothing needs to be installed locally.
- **Registry-listed name:** Published in the official MCP registry as io.github.sadri-dridi/lex-ok.

## Good for

- Letting an agent check how many rules a Lex specification contains
- Testing a client's connection to a remote streamable-http MCP server
- Adding a lightweight utility call to an automated workflow without sending data to be stored

## Install

### Claude Code (Terminal)

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

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

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

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

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

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

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

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

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

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

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

## FAQ

### How do I connect to this server?

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

### Does it store the content I send?

The registry description says the body is discarded, meaning it only returns the rule count.

### Is there a package to install?

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

### What is its registry name?

io.github.sadri-dridi/lex-ok.

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

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

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

The closest alternatives to Lex rule count, body discarded are Yacc rule count, body discarded, SCSS rule count, body discarded, TeX control-word count, body discarded, LF count, text discarded and PEG 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.
- [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.
- [TeX control-word count, body discarded](https://ai-powered.com/mcp/tex-control-word-count-body-discarded): TeX control-word count, body discarded is an MCP server for developer tools.
- [LF count, text discarded](https://ai-powered.com/mcp/lf-count-text-discarded): LF count, text discarded is an open-source MCP server for developer tools.
- [PEG rule count, body discarded](https://ai-powered.com/mcp/peg-rule-count-body-discarded): PEG rule count, body 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.
- [Sass indent-rule count, body discarded](https://ai-powered.com/mcp/sass-indent-rule-count-body-discarded): Sass indent-rule count, body discarded is an MCP server for developer tools.
- [Markdown heading count, body discarded](https://ai-powered.com/mcp/markdown-heading-count-body-discarded): Markdown heading count, body discarded is an MCP server for files and documents.

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