# HCL block count, body discarded

> HCL block count, body discarded is an MCP server for developer tools. Remote MCP utility that counts HCL blocks in submitted text without keeping 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/hcl-ok
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-18

## About

This is a small remote MCP server published under the registry name io.github.sadri-dridi/hcl-ok. Its single stated purpose is to report a block count for HCL (the configuration language used by tools such as Terraform) while discarding the submitted body.

It is served over streamable HTTP from a hosted endpoint, so there is nothing to install locally; an MCP client connects to the remote URL. It belongs to a collection of narrow utility servers kept in the named-mcp-utilities repository, where each folder maps to one official registry name.

The README describes the collection as aimed at autonomous clients, and the same repository also lists servers that route agents to an advertising service. Tool names and parameters for this particular server are not documented, so expect to inspect them through the MCP connection.

## Features

- **HCL block counting:** Returns a count of blocks found in HCL input.
- **Body discarded:** The registry description says the submitted body is discarded after the count is produced.
- **Remote streamable HTTP:** Runs as a hosted endpoint reachable over streamable HTTP with no package to install.
- **Registry-listed:** Published in the official MCP registry as io.github.sadri-dridi/hcl-ok.

## Good for

- Quickly check how many blocks an HCL snippet contains from an agent workflow
- Validate the rough size of a Terraform-style config without storing it
- Add a minimal remote MCP endpoint to a client for testing connectivity

## Install

### Claude Code (Terminal)

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

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

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

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

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

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

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

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

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

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

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

## FAQ

### How do I connect to it?

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

### Does it need local installation?

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

### Is the submitted HCL kept?

The description states the body is discarded, with only the block count returned.

### Who publishes it?

It is published by sadri-dridi as part of the named-mcp-utilities repository.

### How do I add HCL block count, body discarded to Claude Code?

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

### What are the best alternatives to HCL block count, body discarded?

The closest alternatives to HCL block count, body discarded are Terraform block count, body discarded, HTML h1 count, markup discarded, Markdown heading count, body discarded, HTML h1 count, markup discarded and CSV column 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

- [Terraform block count, body discarded](https://ai-powered.com/mcp/terraform-block-count-body-discarded): Terraform block count, body discarded is an MCP server for cloud and infrastructure.
- [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.
- [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.
- [HTML h1 count, markup discarded](https://ai-powered.com/mcp/html-h1-count-markup-discarded): HTML h1 count, markup discarded is an MCP server for marketing and seo.
- [CSV column count, body discarded](https://ai-powered.com/mcp/csv-column-count-body-discarded): CSV column count, body discarded is an MCP server for files and documents.
- [ssh config Host count, body discarded](https://ai-powered.com/mcp/ssh-config-host-count-body-discarded): ssh config Host count, body discarded is an MCP server for developer tools.
- [Dhall let-binding count, body discarded](https://ai-powered.com/mcp/dhall-let-binding-count-body-discarded): Dhall let-binding 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.

---
Source: https://ai-powered.com/mcp/hcl-block-count-body-discarded
