# CSP directive count, value discarded

> CSP directive count, value discarded is an MCP server for security. Remote MCP utility that reports how many directives a CSP string has, without storing it. 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/csp-ok
- **Categories:** [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-11-18

## About

This server is one entry in a repository of small, single-purpose MCP utilities. Its job is narrow: given a Content-Security-Policy value, it returns the number of directives and, according to its registry description, discards the value itself.

It runs as a remote endpoint over streamable HTTP, hosted on a Cloudflare Workers address, so there is nothing to install locally. The registry entry lists no packages, only the remote URL.

The repository describes these servers as independently listed public MCP servers aimed at autonomous clients. The same repository also lists related utilities such as ID-format and calendar checks, plus servers that route agents to an advertising service. Details on inputs, outputs and tool names are not documented.

## Features

- **CSP directive counting:** Returns the number of directives found in a Content-Security-Policy string.
- **Value discarded:** The registry description says the submitted value is discarded rather than kept.
- **Remote streamable HTTP:** Connects to a hosted endpoint over streamable HTTP, so no local install is needed.
- **Official registry name:** Published under the registry name io.github.sadri-dridi/csp-ok.

## Good for

- Let an agent quickly check how many directives a CSP header contains
- Sanity-check a generated security header before applying it
- Add a lightweight CSP shape check to an automated workflow

## Install

### Claude Code (Terminal)

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

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

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

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

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

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

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

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

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

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

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

## FAQ

### What does this MCP server do?

It reports the directive count of a CSP string and discards the value, per its registry description.

### How do I connect to it?

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

### Does it need to be installed locally?

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

### How do I add CSP directive count, value discarded to Claude Code?

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

### What are the best alternatives to CSP directive count, value discarded?

The closest alternatives to CSP directive count, value discarded are REA, AiSOC, redamon, x64dbg-mcp-server and Agent Roast.

## 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

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [AiSOC](https://ai-powered.com/mcp/aisoc): AiSOC is an open-source MCP server for ai models and llm tooling.
- [redamon](https://ai-powered.com/mcp/redamon): redamon is an open-source MCP server for ai models and llm tooling.
- [x64dbg-mcp-server](https://ai-powered.com/mcp/x64dbg-mcp-server): x64dbg-mcp-server is an open-source MCP server for ai models and llm tooling.
- [Agent Roast](https://ai-powered.com/mcp/agent-roast): Agent Roast is an open-source MCP server for developer tools.
- [Midplane](https://ai-powered.com/mcp/midplane): Midplane is an open-source MCP server for databases.
- [Leash](https://ai-powered.com/mcp/leash): Leash is a free MCP server for security.
- [Cisa Kev](https://ai-powered.com/mcp/cisa-kev): Cisa Kev is a freemium MCP server for security.

---
Source: https://ai-powered.com/mcp/csp-directive-count-value-discarded
