# CSS rule count, stylesheet discarded

> CSS rule count, stylesheet discarded is an MCP server for developer tools. Remote MCP utility that counts CSS rules in a stylesheet and discards the input. 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/css-rule-count
- **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 MCP utilities published under the same registry namespace. Its registry description says it returns a CSS rule count and that the stylesheet itself is discarded rather than kept.

It is a remote endpoint only, reached over streamable HTTP at a hosted worker URL. No installable package is listed, so there is nothing to run locally. The README does not document the tool names, input parameters or output format for this server.

The README describes the wider collection as independently listed public MCP servers aimed at autonomous clients, with each folder mapped to one official registry name. Developers who want a quick rule count for a stylesheet from an agent workflow are the likely audience.

## Features

- **CSS rule counting:** Reports how many rules a stylesheet contains, according to the registry description.
- **Input discarded:** The submitted stylesheet is not retained after the count is produced.
- **Streamable HTTP remote:** Connects to a hosted endpoint over streamable HTTP, with no local install.
- **Part of a utility set:** Sits alongside many other narrow single-purpose MCP servers under the same registry namespace.

## Good for

- Check how large a stylesheet is from within an agent workflow
- Add a lightweight CSS metric to an automated review step
- Get a rule count without storing the stylesheet contents

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http css-rule-count https://agent-observatory-sensor.nolimit-observatory.workers.dev/s/css-rule-count/mcp
```

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

```sh
https://agent-observatory-sensor.nolimit-observatory.workers.dev/s/css-rule-count/mcp
```

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

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

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

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

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

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

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

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

## FAQ

### How do I connect to this server?

Use the streamable HTTP remote URL listed in the registry entry; no package is provided for local installation.

### Does it keep the stylesheet I send?

The registry description says the stylesheet is discarded.

### Which tools does it expose?

The README does not list tool names or parameters for this server.

### How do I add CSS rule count, stylesheet discarded to Claude Code?

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

### What are the best alternatives to CSS rule count, stylesheet discarded?

The closest alternatives to CSS rule count, stylesheet discarded are CSS rule count, body discarded, SCSS rule count, body discarded, Unicode word count, text discarded, Sass indent-rule count, body discarded and Lex 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

- [CSS rule count, body discarded](https://ai-powered.com/mcp/css-rule-count-body-discarded): CSS 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.
- [Unicode word count, text discarded](https://ai-powered.com/mcp/unicode-word-count-text-discarded): Unicode word count, text 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.
- [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.
- [Whitespace word count, text discarded](https://ai-powered.com/mcp/whitespace-word-count-text-discarded): Whitespace word count, text 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.
- [HTML h1 count, markup discarded](https://ai-powered.com/mcp/html-h1-count-markup-discarded-2): HTML h1 count, markup discarded is an MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/css-rule-count-stylesheet-discarded
