
Connect Code Block Token Analyzer to ChatGPT and Claude
Set it up once and it works in ChatGPT, Claude, Cursor, and any other client you love. It all runs safely in the background, so you can relax and focus on what really matters. Get precise token counts for code and text.
Developed, maintained, and hosted by Vinkius.
MCP VERIFIED · PRODUCTION READY · VINKIUS GUARANTEED
Waiting for input…
Works with modern AI clients that support MCP, including ChatGPT, Claude, Cursor, and more.
Your AI does the work. We keep it safe and sound.
No other AI tool gives you this. Your workflow runs in the client you already love, your account stays protected, and you decide what the agent can and cannot do. It is the whole reason to make the switch.
Each Connector lives inside our infrastructure, the same place where your workflow runs. The three things below are already part of it, working quietly in the background so you never have to think about them. Nothing to add, nothing to set up, nothing to worry about.

Each Connector runs inside its own sealed environment.
Each Connector runs inside its own sealed V8 runtime — no access to your files, your system, or other servers. A Connector never sees past its own request.
One switch stops every agent. Instantly.
One action deactivates every Connector, revokes every token, and ends every session at once. AI Governance keeps the record.
Spending limits that pause instead of surprise.
Every user keeps their own connections and credentials, isolated from everyone else. Anything that would cross your spending limit is held for your approval, not billed.
Three controls, built into the layer your AI connects through.
Curated set · 3 capabilities
We ship only the actions that matter.
01-03
3 capabilities in this set.
Part of 3 available through Code Block Token Analyzer.
- 01
Validate code block format
This capability checks if your text contains properly formatted triple-backtick code blocks. It ensures the content is ready for extraction.
- 02
Analyze text density
This capability provides a detailed breakdown of character counts, code blocks, and token ratios. It uses specific character-to-token heuristics for both code and text.
- 03
Get token metrics summary
This capability returns a high-level overview of token distribution. It is useful for a quick look at whether a document is code-heavy.
Real work
What teams actually run
Context Window Management
Your agent checks how much of the context window is consumed by a large code block.
Prompt Optimization
You calculate the code-to-text ratio to balance information density.
Documentation Audits
The MCP validates that code snippets in a text file are extractable.
Data Processing
You get a breakdown of character and token counts for technical datasets.
One connector, every AI
Code Block Token Analyzer works with the most popular AI clients.
These are the most popular clients, each with a step-by-step guide: one link, set up once, with governance and visibility built in. And because everything runs on the MCP standard, the same connection also works in any other compatible client — nothing to rebuild.
Claude
ChatGPT
Gemini
Perplexity
Grok
Microsoft Copilot
Cursor
VS Code
Windsurf
JetBrains
Cline
LangChain
Vercel AI SDK
Lovable
Z.ai
Raycast
Qwen Code
Kimi Code
Le ChatBuilding your own app? The connector is yours to use.
You don't need a client to put Code Block Token Analyzer to work: the same hosted connection plugs into your own applications and agent code, with the same governance on every request. Build with it, chat with it — one connection for both.
Observed, not estimated
824ms average. Fast in production.
Code Block Token Analyzer is checked daily against the live service.
- Fastest day
- 673ms
- Slowest day
- 992ms
- 14-day trend
- Improving-19%
Connect your client
One URL. Every client.
Activate the Connector, copy your link, and paste it into the client you already use. 3 capabilities arrive ready to run.
Preview access · not provider authentication
The vk_preview_* token belongs to Vinkius preview infrastructure. It lets Claude discover and display the capabilities of Code Block Token Analyzer, so you can see the experience inside your AI.
It does not authenticate your account with Code Block Token Analyzer. Actions requiring credentials or live account data may not run until you activate the Connector and authorize the service.
Code Block Token Analyzer Connector
You're all set. Choose your MCP client and follow the setup instructions.
https://edge.vinkius.com/vk_preview_61f6ADAlqbkiYiLN3Wz2ZyPTCqypN7kItzL4JuPb/mcpClaude Desktop
Follow the steps below to connect in seconds.
- 1In Claude Desktop, open Settings → Connectors.
- 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
- 3Click Add and start a new chat — Code Block Token Analyzer capabilities are ready to use.
{
"mcpServers": {
"code-block-token-analyzer-mcp": {
"url": "https://edge.vinkius.com/vk_preview_61f6ADAlqbkiYiLN3Wz2ZyPTCqypN7kItzL4JuPb/mcp"
}
}
}
Claude
ChatGPT
Cursor
VS Code
Windsurf
Claude Code
JetBrains
Cline
Step-by-step instructions for each client are in the guide. How to connect
Guided setup for Claude? Set up Code Block Token Analyzer in Claude and other AIs
Who it's for
Built for the work Code Block Token Analyzer owners hand off.
This MCP is built for developers and prompt engineers managing large technical contexts.
- 01
Software Engineers
They hand off code snippets to their agent to check context usage.
- 02
Prompt Engineers
They use it to optimize the token footprint of technical prompts.
- 03
Technical Writers
They verify that code blocks in documentation are correctly formatted.
FAQ
Questions Code Block Token Analyzer owners ask.
- 01
How does this MCP calculate tokens?
It uses a heuristic where code tokens are estimated at 3 characters per token and non-code text is estimated at 4 characters per token.
- 02
What clients can I use this with?
You can use this with any MCP-compatible client, including Claude, Cursor, Windsurf, and VS Code.
- 03
Can it check if my code blocks are valid?
Yes, the validate_code_block_format capability checks for properly formatted triple-backtick blocks.
- 04
Do I need to host the MCP myself?
No, Vinkius hosts and manages the MCP for you. You just connect your client and start using the capabilities.
- 05
What is the difference between the two analysis capabilities?
analyze_text_density gives a full breakdown of all metrics, while get_token_metrics_summary provides a high-level overview.
- 06
How are tokens calculated?
Code tokens are calculated by dividing code characters by 3, and non-code tokens by 4.
- 07
What is the purpose of the optimization suggestion?
If the code ratio exceeds 0.5, the capability suggests summarizing or extracting code to optimize context window usage.
- 08
Can I check if my text has valid code blocks?
Yes, you can use the validate_code_block_format capability to verify if triple-backtick blocks are present.
Explore
More in Developer Tools
DeepOpinion (No-code NLP & Text AI API) AI Connector
Automate NLP and text analysis with DeepOpinion — list custom models, run single predictions, and process text
ViewSpecial Character Token Analyzer AI Connector
Analyze the impact of special characters on tokenization density.
ViewKeyword Density Analyzer AI Connector
Calculate keyword frequency, density percentage, and spatial distribution in text to optimize SEO content.
ViewLangfuse (LLM Tracing & Evals) AI Connector
Monitor LLM apps via Langfuse — track traces, manage prompt templates, and audit evaluation scores.
View
Suggestions
Multi-Language Token Estimator AI Connector
Analyze text composition and estimate token counts across multiple languages.
ViewTwitter Microcopy Density Analyzer AI Connector
Analyze text density and impact for micro-blogging constraints.
ViewMarkdown Code Block Extractor AI Connector
Extracts exact code blocks from LLM markdown responses.
ViewFliki (AI Text-to-Video & Speech API) AI Connector
Create high-quality videos and AI voices from text scripts using Fliki — generate content, list voices, and tr
View
Connect Code Block Token Analyzer to Claude, Cursor, ChatGPT & more
