# agentskin [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/Shawn5cents/agentskin  
**GitHub Stars:** 1  
**npm Downloads (last month):** 570  
**Views:** 5  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/agentskin

## Description
The Semantic Layer for AI Agents. Prunes noisy API data by 70%+ for token-efficient reasoning.

## Tools
Capabilities this server exposes over MCP:

- **compress** — Single front door for context compaction. Auto-detects CLI output when command is supplied, JSON when parseable, otherwise applies safe text cleanup without rewriting prose.
- **fetch_optimized_data** — Fetch a public API or webpage and return compact context. Structured JSON is pruned with URL-specific rules when available.
- **skin_reasoning** — Optimize natural language text by removing linguistic noise (hedging, filler words, redundant phrases). 14-29% typical reduction.
- **classify_url** — Check if a URL matches any built-in API skin rules (GitHub, npm, weather, etc.). Returns the matched rule with signals and aliases, or null.
- **strip_ansi** — Strip ANSI escape codes from text. Useful for cleaning terminal output before processing.
- **reduce** — Run the full Tokenjuice reduction pipeline on command output. Applies rule matching (136 rules), ANSI stripping, truncation, JSON semantic pruning, and other reducers based on the matched rule set.
- **estimate_tokens** — Estimate the token count for a string. Uses grapheme-aware counting (via Intl.Segmenter) for accurate estimates on CJK, emoji, and combining marks.
- **apply_json_semantic** — Prune a JSON string using signal keys. Auto-classifies URL against built-in API rules (GitHub, npm, HackerNews, weather, Reddit, JSONPlaceholder). Keeps only signal-matched keys, applies alias remapping, flattens to markdown.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "agentskin": {
    "command": "npx",
    "args": ["-y","agentskin"]
  }
}
```

## Documentation

## What the agentskin MCP server does

The agentskin MCP server implements the Semantic Shorthand Standard, a protocol for reducing high-entropy content into compact Markdown. It can process HTML, JSON, and other API responses, then preserve the fields an agent considers important. The result is a flattened, hierarchical representation intended to reduce unnecessary context while keeping selected meaning.

The package also provides a text transformation path for natural-language input. That path removes linguistic noise such as hedging and filler, producing a more concise version for agent reasoning.

## How it works

The data workflow has four stages. First, the server receives a URL and obtains the source content. Next, a list of signals identifies the keys or values worth retaining. An alias map can rename inconsistent source fields into a common vocabulary. Finally, the engine recursively prunes the input and emits deterministic Markdown.

Signal selection is supplied by the caller rather than fixed to a particular API. For example, a weather response could retain temperature, wind speed, and a short forecast while mapping source field names to shorter standardized labels. Reported benchmarks show 66–86% savings for typical API responses, although the result depends on the structure of the input.

## Setup and configuration

Run the Node.js reference server with:

```bash
npx -y agentskin@latest
```

The README provides a Claude Desktop configuration that starts the server through `npx` using the `agentskin@latest` package. The same standard MCP process can be selected by compatible clients that support local stdio servers.

No environment variables are documented as required. The implementation is local-first: fetching, pruning, session state, cookies, and network access remain on the host running the server. The transformation engine has no external runtime dependencies, according to the project documentation.

## Tools and capabilities

The reference implementation exposes two operations:

- `fetch_optimized_data` accepts a required `url`, plus optional `signals` and `aliases`. It fetches a web or API resource and returns a token-reduced Skin.
- `skin_reasoning` accepts required `text` and removes unnecessary linguistic material from natural-language input.

The listing also identifies the exposed inputs as `url`, `signals`, `aliases`, and `text`. Together, these support selective field retention, schema normalization, URL retrieval, and text distillation.

## Limitations and notes

The agentskin MCP server is designed for transformation rather than general API-specific business logic. Callers must provide the signals and aliases needed for their target data; the protocol does not infer a universal schema from the documentation provided.

Security controls include blocking private IPv4 and IPv6 ranges, cloud and Kubernetes metadata endpoints, and unsafe `javascript:` or `data:` URL schemes in HTML links. Requests are limited to 30 per minute per client, tool inputs are validated with Zod schemas, and processing has a 30-second timeout. These controls may prevent access to internal resources and may reject inputs that exceed the processing limit.

The project is released under the MIT license.

_Full upstream README: https://allmcps.com/mcp/agentskin/readme_

