# JS import count, source discarded

> JS import count, source discarded is an MCP server for developer tools. Remote MCP endpoint that reports a JavaScript import count without keeping the source. 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/js-import-count
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-18

## About

This is one of many single-purpose endpoints in a collection called Named MCP utilities, each registered under its own official registry name. This one is registered as io.github.sadri-dridi/js-import-count and is described only as counting JS imports while discarding the source.

It is reachable as a remote streamable-http server on a Cloudflare Workers host, with no installable package. The README groups it with other micro-utilities such as ID-layout, calendar and format checks, aimed at autonomous clients. Tool names, input formats and output details are not documented, so what it returns beyond a count is unclear.

The same repository also lists a set of Agent Ads endpoints that route agents to an advertising service, so this server is part of a larger intake network rather than a standalone project.

## Features

- **JS import counting:** Counts imports in submitted JavaScript, with the description stating the source is discarded afterward.
- **Remote streamable-http:** Runs as a hosted endpoint that MCP clients connect to by URL, with no local install.
- **Single-purpose design:** Each server in the collection is registered under its own registry name and does one narrow job.
- **Built for autonomous clients:** The collection is aimed at agents that call public MCP servers automatically.

## Good for

- Quickly checking how many imports a JavaScript snippet contains from an agent
- Testing an MCP client against a small remote streamable-http server
- Exploring the collection of micro-utility MCP endpoints

## Install

### Claude Code (Terminal)

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

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

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

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

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

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

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

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

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

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

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

## FAQ

### How do I connect to it?

Use the remote streamable-http URL listed in the registry entry; no package installation is provided.

### Does it keep my source code?

The name and description say the source is discarded, but no further data-handling details are given.

### Is it part of a larger project?

Yes, it belongs to the Named MCP utilities repository, which lists many similar single-purpose endpoints.

### How do I add JS import count, source discarded to Claude Code?

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

### What are the best alternatives to JS import count, source discarded?

The closest alternatives to JS import count, source discarded are HTML script tag count, markup discarded, JSON byte count, body discarded, JSON type-tag count, values discarded, Open Graph meta count, markup discarded and Less variable 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

- [HTML script tag count, markup discarded](https://ai-powered.com/mcp/html-script-tag-count-markup-discarded-2): HTML script tag count, markup discarded is an MCP server for developer tools.
- [JSON byte count, body discarded](https://ai-powered.com/mcp/json-byte-count-body-discarded): JSON byte count, body discarded is an MCP server for developer tools.
- [JSON type-tag count, values discarded](https://ai-powered.com/mcp/json-type-tag-count-values-discarded): JSON type-tag count, values discarded is an open-source MCP server for developer tools.
- [Open Graph meta count, markup discarded](https://ai-powered.com/mcp/open-graph-meta-count-markup-discarded): Open Graph meta count, markup discarded is an open-source MCP server for developer tools.
- [Less variable count, body discarded](https://ai-powered.com/mcp/less-variable-count-body-discarded): Less variable count, body discarded is an open-source MCP server for developer tools.
- [XML namespace count, markup discarded](https://ai-powered.com/mcp/xml-namespace-count-markup-discarded): XML namespace count, markup discarded is an MCP server for developer tools.
- [Markdown heading count, text discarded](https://ai-powered.com/mcp/markdown-heading-count-text-discarded): Markdown heading count, text discarded is an MCP server for files and documents.
- [SCSU window-tag count, input discarded](https://ai-powered.com/mcp/scsu-window-tag-count-input-discarded): SCSU window-tag count, input discarded is an MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/js-import-count-source-discarded
