claw-tsaver
claw-tsaver
OpenClaw 사용자를 위한 토큰 절약 MCP 프록시입니다. 지연 확장을 통해 도구 호출 페이로드를 90% 이상 줄여줍니다.
이유
MCP 도구 호출은 종종 단일 응답에서 수천 개의 HTML 또는 JSON 토큰을 반환하지만, 모델은 일반적으로 그중 5%만 사용합니다. 나머지 95%는 컨텍스트 창을 낭비하고 비용을 증가시킵니다. claw-tsaver는 OpenClaw와 하위 MCP 서버 사이에 위치하여, 너무 큰 응답을 가로채고 모델에게 압축된 미리보기와 온디맨드 핸들을 제공합니다.
Related MCP server: TokenSaver MCP
작동 방식
sequenceDiagram
participant U as OpenClaw (Claude)
participant C as claw-tsaver proxy
participant F as fetch / puppeteer / etc.
U->>C: call_tool("fetch", url)
C->>F: forward call
F-->>C: 11,507 tokens of HTML
Note over C: tiktoken count > threshold
C->>C: store full content in SQLite
C-->>U: {preview_head, preview_tail, expand_handle}<br/>(only 104 tokens)
Note over U: model decides if it needs full text
U->>C: expand_content(handle)
C-->>U: full 11,507 tokens실제 측정 결과
테스트 | 원본 토큰 | 반환된 토큰 | 절감액 |
위키백과 "토큰화(데이터 보안)" 가져오기 | 11,507 | 104 | 99.1% |
OpenClaw + Claude Sonnet 4.6 + mcp-server-fetch에서 테스트됨, 2026-04-25.
원시 데이터: benchmarks/mvp-day1-fetch.jsonl.
빠른 시작
1. 사전 요구 사항
uv를 설치하세요 (1회 설정):
curl -LsSf https://astral.sh/uv/install.sh | shclaw-tsaver를 별도로 설치할 필요는 없습니다. uvx가 필요할 때 가져와서 실행합니다.
2. 하위 MCP 서버 구성
~/.claw-tsaver/config.json을 편집하세요 (claw-tsaver-mcp를 처음 실행하면 템플릿이 자동으로 생성됩니다):
{
"downstream_servers": [
{"name": "fetch", "command": "uvx", "args": ["mcp-server-fetch"]}
],
"compression_threshold_tokens": 500
}3. OpenClaw에 등록
~/.openclaw/openclaw.json의 최상위 수준에 이 블록을 추가하세요:
"mcp": {
"servers": {
"claw-tsaver": {
"command": "uvx",
"args": ["--from", "git+https://github.com/Yang1Bai/claw-tsaver",
"claw-tsaver-mcp"]
}
}
}그런 다음 OpenClaw 게이트웨이를 다시 시작하세요: openclaw gateway restart
대시보드
선택 사항: 실시간 토큰 절감 통계를 위한 로컬 웹 UI입니다.
uvx --from git+https://github.com/Yang1Bai/claw-tsaver claw-tsaver-dashboard브라우저에서 http://localhost:7878을 여세요.
로드맵
[x] 모듈 A: 지연 확장 프록시 (이번 릴리스)
[x] 모듈 D: 로컬 대시보드 (이번 릴리스)
[ ] 모듈 B: 도구 라우팅 (턴당 관련 MCP만 자동 로드)
[ ] 모듈 C: 대화 기록 압축 (원자적 사실 카드)
라이선스
MIT — LICENSE 파일을 참조하세요.
기여
이슈 및 PR을 환영합니다.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server that helps AI agents reduce token usage by converting data to TOON format and stripping comments and unnecessary whitespace from code files.MIT
- AlicenseAqualityCmaintenanceAn MCP server that reduces AI API costs by up to 97% through token measurement, compression, caching, and pruning, all without changing prompts.101Apache 2.0
- AlicenseAqualityAmaintenanceAn MCP server that intelligently filters and compresses tool outputs to reduce context window usage, saving up to 90% of tokens by removing noise such as passing tests and redundant information.520MIT
- AlicenseNot gradedqualityCmaintenanceMCP server that reduces AI agent token usage by up to 90% through intelligent context compression. Enables efficient code exploration, multi-file refactoring, and debugging by providing tools for smart reading, searching, and managing code context.4MIT
Related MCP Connectors
Cloud-hosted MCP server for durable AI memory
An MCP server that integrates with Discord to provide AI-powered features.
MCP server for AI dialogue using various LLM models via AceDataCloud
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Yang1Bai/claw-tsaver'
If you have feedback or need assistance with the MCP directory API, please join our Discord server