{"id":45865498,"url":"https://github.com/ason-format/mcp-server","last_synced_at":"2026-02-27T08:05:46.994Z","repository":{"id":323762778,"uuid":"1094579501","full_name":"ason-format/mcp-server","owner":"ason-format","description":"Model Context Protocol (MCP) server for ASON compression/decompression. Enables Claude Desktop and other MCP clients to compress JSON data using the token-optimized ASON format.","archived":false,"fork":false,"pushed_at":"2025-11-12T00:31:03.000Z","size":47,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-12T01:18:00.034Z","etag":null,"topics":["ai","ason","claude","cline","compression","continue","json","llm","mcp","model-context-protocol","tokens"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ason-format.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-11T22:38:25.000Z","updated_at":"2025-11-12T00:31:07.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ason-format/mcp-server","commit_stats":null,"previous_names":["ason-format/mcp-server"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/ason-format/mcp-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ason-format%2Fmcp-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ason-format%2Fmcp-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ason-format%2Fmcp-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ason-format%2Fmcp-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ason-format","download_url":"https://codeload.github.com/ason-format/mcp-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ason-format%2Fmcp-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29888149,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-27T07:54:54.515Z","status":"ssl_error","status_checked_at":"2026-02-27T07:54:49.177Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","ason","claude","cline","compression","continue","json","llm","mcp","model-context-protocol","tokens"],"created_at":"2026-02-27T08:05:46.415Z","updated_at":"2026-02-27T08:05:46.990Z","avatar_url":"https://github.com/ason-format.png","language":"TypeScript","readme":"# ASON MCP Server\n\n[![NPM Version](https://img.shields.io/npm/v/%40ason-format%2Fmcp-server)](https://www.npmjs.com/package/@ason-format/mcp-server)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![Node.js](https://img.shields.io/badge/Node.js-v18+-green.svg)](https://nodejs.org/)\n\nModel Context Protocol (MCP) server for ASON compression/decompression. Enables Claude Desktop, Cline, Continue, and other MCP clients to compress JSON data using the token-optimized ASON format.\n\n## Features\n\n- **compress_json**: Convert JSON to ASON format (20-60% token reduction)\n- **decompress_ason**: Convert ASON back to JSON (lossless)\n- **get_compression_stats**: Analyze compression metrics without performing compression\n- **configure_compressor**: Customize compression settings globally\n\n## Installation\n\n### Option 1: Local Development\n\n```bash\ncd mcp-server\nnpm install\nnpm run build\n```\n\n### Option 2: Global Installation\n\n```bash\nnpm install -g @ason-format/mcp-server\n```\n\n## Usage with Claude Desktop\n\nAdd to your Claude Desktop configuration file:\n\n**macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`\n**Windows**: `%APPDATA%\\Claude\\claude_desktop_config.json`\n\n```json\n{\n  \"mcpServers\": {\n    \"ason\": {\n      \"command\": \"node\",\n      \"args\": [\n        \"/absolute/path/to/ason/mcp-server/dist/index.js\"\n      ]\n    }\n  }\n}\n```\n\nOr if installed globally:\n\n```json\n{\n  \"mcpServers\": {\n    \"ason\": {\n      \"command\": \"ason-mcp\"\n    }\n  }\n}\n```\n\n## Available Tools\n\n### 1. compress_json\n\nCompress JSON data to ASON format.\n\n**Input:**\n```json\n{\n  \"json\": {\"users\": [{\"id\": 1, \"name\": \"Alice\"}, {\"id\": 2, \"name\": \"Bob\"}]},\n  \"config\": {\n    \"indent\": 1,\n    \"delimiter\": \"|\",\n    \"useReferences\": true,\n    \"useSections\": true,\n    \"useTabular\": true\n  }\n}\n```\n\n**Output:**\n```\nASON 2.0 Output:\n\nusers:[2]{id,name}\n1|Alice\n2|Bob\n\nConfiguration used:\n{\n  \"indent\": 1,\n  \"delimiter\": \"|\",\n  \"useReferences\": true,\n  \"useSections\": true,\n  \"useTabular\": true\n}\n```\n\n### 2. decompress_ason\n\nDecompress ASON back to JSON.\n\n**Input:**\n```json\n{\n  \"ason\": \"users:[2]{id,name}\\n1|Alice\\n2|Bob\"\n}\n```\n\n**Output:**\n```json\n{\n  \"users\": [\n    {\"id\": 1, \"name\": \"Alice\"},\n    {\"id\": 2, \"name\": \"Bob\"}\n  ]\n}\n```\n\n### 3. get_compression_stats\n\nAnalyze compression statistics.\n\n**Input:**\n```json\n{\n  \"json\": {\"users\": [{\"id\": 1, \"name\": \"Alice\"}, {\"id\": 2, \"name\": \"Bob\"}]},\n  \"config\": {\n    \"indent\": 1,\n    \"delimiter\": \"|\"\n  }\n}\n```\n\n**Output:**\n```\nCompression Statistics:\n\nOriginal Tokens: 32\nCompressed Tokens: 15\nReduction: 53.13%\n\nOriginal Size: 78 bytes\nCompressed Size: 41 bytes\nSavings: 37 bytes\n\nConfiguration:\n{\n  \"indent\": 1,\n  \"delimiter\": \"|\",\n  \"useReferences\": true,\n  \"useSections\": true,\n  \"useTabular\": true\n}\n```\n\n### 4. configure_compressor\n\nUpdate global compression settings.\n\n**Input:**\n```json\n{\n  \"config\": {\n    \"indent\": 2,\n    \"delimiter\": \",\",\n    \"useReferences\": false\n  }\n}\n```\n\n**Output:**\n```\nGlobal configuration updated:\n\n{\n  \"indent\": 2,\n  \"delimiter\": \",\",\n  \"useReferences\": false,\n  \"useSections\": true,\n  \"useTabular\": true\n}\n```\n\n## Configuration Options\n\n| Option | Type | Default | Description |\n|--------|------|---------|-------------|\n| `indent` | number | `1` | Indentation level for nested structures |\n| `delimiter` | string | `\"|\"` | Field delimiter for tabular arrays (pipe, comma, or tab) |\n| `useReferences` | boolean | `true` | Enable `$var` reference deduplication |\n| `useSections` | boolean | `true` | Enable `@section` organization for objects |\n| `useTabular` | boolean | `true` | Enable `[N]{fields}` tabular format for arrays |\n| `minFieldsForSection` | number | `3` | Minimum fields to create a `@section` |\n| `minRowsForTabular` | number | `2` | Minimum rows for tabular array format |\n| `minReferenceOccurrences` | number | `2` | Minimum occurrences to create a `$var` reference |\n\n## Development\n\n```bash\n# Build\nnpm run build\n\n# Watch mode\nnpm run watch\n\n# Test locally\nnode dist/index.js\n```\n\n## Example Usage in Claude Desktop\n\n```\nUser: Can you compress this JSON for me?\n{\n  \"products\": [\n    {\"id\": 1, \"name\": \"Laptop\", \"price\": 999},\n    {\"id\": 2, \"name\": \"Mouse\", \"price\": 25}\n  ]\n}\n\nClaude: I'll use the compress_json tool to compress this JSON.\n[Uses MCP tool compress_json]\n\nResult:\nproducts:[2]{id,name,price}\n1|Laptop|999\n2|Mouse|25\n\nThis compressed version uses 45% fewer tokens!\n```\n\n## 🚀 Publishing\n\nTo release a new version:\n\n```bash\n# Run the release script\n./scripts/release.sh\n\n# 1. Select version bump (patch/minor/major)\n# 2. Update CHANGELOG.md when prompted\n# 3. Confirm push\n\n# GitHub Actions will automatically:\n# - Build the package\n# - Publish to NPM (@ason-format/mcp-server)\n# - Create GitHub Release\n```\n\n## 🧪 Supported MCP Clients\n\n- ✅ **Claude Desktop** (Anthropic)\n- ✅ **Cline** (VS Code extension)\n- ✅ **Continue** (VS Code extension)\n- ✅ **Any MCP client** with stdio transport\n\n## 📚 What is ASON 2.0?\n\nASON (Aliased Serialization Object Notation) 2.0 is a token-optimized JSON compression format designed for LLMs. It reduces token usage by 20-60% while maintaining 100% lossless round-trip fidelity.\n\n**Key features:**\n- **Sections** (`@section`) - Organize related objects\n- **Tabular Arrays** (`key:[N]{fields}`) - CSV-like format for uniform arrays\n- **References** (`$var`) - Deduplicate repeated values\n- **Pipe Delimiter** (`|`) - More token-efficient than commas\n\n**Learn more**: [ason-format.github.io/ason](https://ason-format.github.io/ason/)\n\n## 📖 Documentation\n\n- **[Changelog](./CHANGELOG.md)** - Version history\n- **[ASON Format](https://github.com/ason-format/ason)** - Core library\n- **[Model Context Protocol](https://modelcontextprotocol.io/)** - MCP specification\n- **[Claude Desktop](https://claude.ai/download)** - Download Claude Desktop\n\n## 📝 License\n\nMIT © ASON Project Contributors\n\n## 🤝 Contributing\n\nContributions welcome! Please open an issue or pull request.\n\n## 🔗 Links\n\n- **NPM**: https://www.npmjs.com/package/@ason-format/mcp-server\n- **GitHub**: https://github.com/ason-format/mcp-server\n- **Issues**: https://github.com/ason-format/mcp-server/issues\n- **ASON Core**: https://github.com/ason-format/ason\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fason-format%2Fmcp-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fason-format%2Fmcp-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fason-format%2Fmcp-server/lists"}