# YAML key count, body discarded

> YAML key count, body discarded is an MCP server for developer tools. MCP server that counts YAML keys and discards the document 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/yaml-key-count
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-18

## About

The README says the body of any YAML document sent to this server is discarded, so the service returns a key count rather than keeping the file's contents. It is published under the official MCP registry name io.github.sadri-dridi/yaml-key-count and is reachable over streamable HTTP at a remote endpoint.

It belongs to a larger set of small, single-purpose MCP utilities from the same author, each with its own endpoint. Those utilities cover things like date and calendar checks and identifier formats. This entry is aimed at developers and agent builders who need a quick structural check on YAML input from an AI client without storing the input.

## Features

- **Key count output:** Returns the number of keys found in a submitted YAML document.
- **Body discarded:** The document text is not retained, according to the server's name and listing.
- **Remote HTTP endpoint:** Served over streamable HTTP, so MCP clients can connect without a local install.
- **Official registry entry:** Listed in the MCP registry under a namespaced name tied to the author's GitHub account.

## Good for

- Checking the rough size of a YAML config inside an agent workflow
- Confirming that a generated YAML file contains a plausible number of keys
- Sending structural checks on sensitive YAML without keeping a copy on the server
- Adding a lightweight YAML sanity check to an MCP-based developer toolchain

## Install

### Claude Code (Terminal)

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

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

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

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

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

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

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

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

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

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

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

## FAQ

### What transport does the server use?

The registry entry lists streamable-http with a single remote URL and no packages to install locally.

### Does the server keep the YAML I send it?

The server's name and listing say the body is discarded, so only the key count is returned.

### Is there a local install option?

The registry entry lists no packages, only the remote endpoint.

### How do I add YAML key count, body discarded to Claude Code?

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

### What are the best alternatives to YAML key count, body discarded?

The closest alternatives to YAML key count, body discarded are YAML validity, body discarded, YAML anchor count, body discarded, XML tag count, body discarded, Yacc rule count, body discarded and Word count, text 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

- [YAML validity, body discarded](https://ai-powered.com/mcp/yaml-validity-body-discarded): YAML validity, body discarded is an MCP server for developer tools.
- [YAML anchor count, body discarded](https://ai-powered.com/mcp/yaml-anchor-count-body-discarded): YAML anchor count, body discarded is an open-source MCP server for developer tools.
- [XML tag count, body discarded](https://ai-powered.com/mcp/xml-tag-count-body-discarded): XML tag count, body discarded is an MCP server for developer tools.
- [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.
- [Word count, text discarded](https://ai-powered.com/mcp/word-count-text-discarded): Word count, text discarded is an MCP server for developer tools.
- [WADL resource count, body discarded](https://ai-powered.com/mcp/wadl-resource-count-body-discarded): WADL resource count, body discarded is an open-source 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.
- [WSDL operation count, body discarded](https://ai-powered.com/mcp/wsdl-operation-count-body-discarded): WSDL operation count, body discarded is an MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/yaml-key-count-body-discarded
