4q Tokenz MCP server
io.github.steveweltman/4q-tokenz·v1.14.1·2 starsIntelligent MCP proxy that reduces token usage by exposing only mcp_search and mcp_call.
2 stars100 downloads/wk
Reviews
Write oneNobody has reviewed 4q Tokenz yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
4q Tokenz tools (3)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
mcp_callmcp_schemaGet the full input schema for a tool. Use the ref from mcp_search results to see all parameters, types, and required fields before calling mcp_call.
mcp_searchDiscover available tools across all connected MCP servers. Returns a short list of relevant tools with refs and usage hints. Use this before mcp_call to find the right tool.
Public scan report
scanner v0.1.9 · 2026-09-27 · same rubric, same numbers if you re-run it
- Code scan53 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitylocal package, no credentials required12/15
- Maintenancelast push 3 days ago15/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
How 4q Tokenz compares
Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 92/100
- higher than 95% of 48,255 servers
- Tools
- 3
- the typical server has 7
- Tools that change things
- 0%
- typical: 0%. Fewer write tools means less an agent can break
- GitHub stars
- 2
- more than 75% of 28,688 servers
- Downloads a week
- 100
- more than 63% of 12,191 servers with a package
What its tools let an agent do: 3 read
Install 4q Tokenz in Claude Code, Cursor or VS Code
Runs npx -y 4q-tokenz on your machine. Read the scan report first; the gateway never runs local packages.
claude mcp add 4q-tokenz -- npx -y 4q-tokenz
What the publisher says
From the 4q Tokenz repository's README, as published. We do not edit it. Read it on GitHub
MCP Proxy Gateway
A context-aware MCP proxy that reduces token usage by exposing only 3 tools (mcpsearch, mcpcall, mcp_schema) to LLMs instead of the full catalog.
Why This Exists
When you connect multiple MCP servers to an LLM, every tool from every server is listed in the LLM's context window. For a typical workspace with 50-100 tools across multiple MCP servers, that's thousands of tokens of schema documentation on every request.
MCP Proxy Gateway sits between your LLM and your MCP servers, offering:
- JIT tool loading — tools from upstream servers are discovered once at startup, then tools are called on-demand. Clients never see the full catalog.
- Intelligent search — fast lexical (BM25) search to find the right tool for a query. Tool tokens are pre-computed at startup for zero-overhead per-query scoring.
- Token savings — LLMs only see 3 tool schemas (search, call, schema) instead of 50+. Typical savings: 20-40% per turn for tool-heavy workflows.
- Zero native dependencies — pure JavaScript, no native modules, no model downloads, no supply chain risk from ML packages.
┌─────────────────────────────────────────────────────────────────┐
│ Your LLM │
│ (sees only: mcp_search, mcp_call, mcp_schema) │
└────────────────────┬────────────────────────────────────────────┘
│
┌───────────▼──────────────┐
│ MCP Proxy Gateway │
│ ┌──────────────────────┐ │
│ │ Tool Registry │ │
│ │ (BM25 lexical) │ │
│ └──────────────────────┘ │
│ ┌──────────────────────┐ │
│ │ Connector Manager │ │
│ │ (Idle timeout reap) │ │
│ └──────────────────────┘ │
└────────────┬─────────────┘
│
┌─────────────┼─────────────┐
│ │ │
▼ ▼ ▼
┌─────────┐ ┌─────────┐ ┌─────────┐
│Google │ │MailerLite│ │Your Svc │
│Gmail │ │ Campaigns│ │ Custom │
│Calendar │ │ │ │ Tools │
│Drive │ │ │ │ │
└─────────┘ └─────────┘ └─────────┘Prerequisites
- Node.js 18+ with npm or pnpm
- One or more MCP servers to proxy (stdio or HTTP)
Installation
From Source
git clone https://github.com/steveweltman/4q-tokenz.git
cd 4q-tokenz
pnpm install
pnpm build
# Install to ~/.local/bin and configure
./install.shAs a Dependency
npm install -g 4q-tokenzGetting Started: Google Workspace Example
Here's a concrete walkthrough to connect Google Workspace (Gmail, Calendar, Drive) to your LLM through the proxy:
Step 1: Choose or Build an MCP Server for Google
You need an MCP server that wraps Google APIs. Options:
- @antidrift/mcp-google (recommended) — A collection of MCP server implementations for Google Workspace (Gmail, Calendar, Drive, Docs, Sheets). Works out of the box with this proxy.
npm install @antidrift/mcp-google
# or
npx @antidrift/mcp-google --help- @modelcontextprotocol/server-gmail — Gmail-only, official MCP server
- Build your own — See the MCP spec to wrap your own APIs
Step 2: Set Up Google OAuth
- Go to Google Cloud Console
- Create a new project or select an existing one
- Enable these APIs:
- Gmail API
- Google Calendar API
- Google Drive API
- Create an OAuth 2.0 credential (type: Desktop application)
- Download the credential JSON
- Run the Google MCP server once to generate token.json:
GOOGLE_CREDENTIAL_FILE=~/Downloads/credentials.json \
npx @antidrift/mcp-googleThis opens a browser for you to authorize. Once done, it saves token.json locally.
Step 3: Configure the Proxy
Create ~/.config/4q-tokens/config.json:
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
4q Tokenz: common questions
- Is 4q Tokenz MCP server safe?
- Yes, by our scan: it is graded A (92/100). Read the 4q Tokenz safety report
- How do I install 4q Tokenz?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does 4q Tokenz need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is 4q Tokenz maintained?
- The last commit was 41 days ago (2026-09-24). The latest release is v1.14.1.
- What can I use instead of 4q Tokenz?
- Servers from other publishers that do the same job: QVeris MCP server.
- How does 4q Tokenz compare with other MCP servers?
- safety score 92/100 (higher than 95% of 48,255 servers); tools 3 (the typical server has 7); tools that change things 0% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.
Alternatives to 4q Tokenz
Same job from other publishers: the closest match first, then the best rated.
QVerisProfessional data and tools for AI: find services, review scope, call them, and audit usage.not reviewedEstablishedA