# DTD ELEMENT count, body discarded

> DTD ELEMENT count, body discarded is an open-source MCP server for developer tools. Remote MCP endpoint that counts DTD ELEMENT declarations and discards the document body. It runs as a hosted remote server, so there is nothing to install locally.

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

## About

This server is one entry in a set of small single-purpose utilities published under the same GitHub account, each registered under its own name. The registry entry describes it only as a DTD ELEMENT count with the body discarded, which suggests it reads a document type definition, reports how many ELEMENT declarations it contains, and does not keep the submitted text.

It is reached over streamable HTTP at a hosted endpoint on a Cloudflare Workers domain, with no package to install. The README groups it with other narrow check-style endpoints, such as ID layout and calendar checks, which are described as intake points for autonomous clients. Tool names and input schemas are not listed.

It fits agents or developers who want a quick structural statistic on a DTD without running a parser locally. Details such as rate limits, input size limits and exact output format are not documented.

## Features

- **DTD element counting:** Returns a count of ELEMENT declarations found in a submitted DTD.
- **Body discarded:** The registry description states the submitted body is discarded rather than kept.
- **Remote streamable HTTP:** Runs as a hosted endpoint, so MCP clients connect by URL with nothing to install.
- **Registered under own name:** Published in the official MCP registry as io.github.sadri-dridi/dtd-ok.

## Good for

- Check how many ELEMENT declarations a DTD contains from an agent workflow
- Add a lightweight DTD size check to an automated pipeline
- Test a remote MCP connection against a minimal single-purpose server

## Install

### Claude Code (Terminal)

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

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

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

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

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

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

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

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

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

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

```json
{
  "mcpServers": {
    "dtd-ok": {
      "type": "http",
      "url": "https://agent-observatory-sensor.nolimit-observatory.workers.dev/s/dtd-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/dtd-ok/mcp.

### Does it keep the DTD I submit?

The description says the body is discarded, meaning the text is not kept after the count is produced.

### Is there a package to install?

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

### Who publishes it?

The sadri-dridi GitHub account, in the named-mcp-utilities repository alongside other small utility servers.

### Is DTD ELEMENT count, body discarded free?

Yes. DTD ELEMENT count, body discarded is open source, so you can use and self-host it for free.

### How do I add DTD ELEMENT count, body discarded to Claude Code?

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

### What are the best alternatives to DTD ELEMENT count, body discarded?

The closest alternatives to DTD ELEMENT count, body discarded are JSON-LD @type count, body discarded, XML tag count, body discarded, TeX control-word count, body discarded, CSS rule count, body discarded and TEI div count, markup 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

- [JSON-LD @type count, body discarded](https://ai-powered.com/mcp/json-ld-type-count-body-discarded): JSON-LD @type count, body discarded is an 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.
- [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.
- [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.
- [TEI div count, markup discarded](https://ai-powered.com/mcp/tei-div-count-markup-discarded): TEI div count, markup 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.
- [TOML table count, body discarded](https://ai-powered.com/mcp/toml-table-count-body-discarded-2): TOML table count, body discarded is an MCP server for developer tools.
- [EDN collection count, body discarded](https://ai-powered.com/mcp/edn-collection-count-body-discarded): EDN collection count, body discarded is an MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/dtd-element-count-body-discarded
