Time Complexity MCP: Static Analysis Tool Feeds Big-O Complexity to AI Coding Agents

Time Complexity MCP is an MCP server that performs static analysis on code to determine Big-O time complexity, then feeds those values directly to AI coding agents. The tool bypasses the token consumption and potential inaccuracies that occur when frontier models attempt to analyze complexity themselves.
How It Works
The server parses code into Abstract Syntax Trees (ASTs) using tree-sitter, then analyzes them to detect:
- Loop nesting patterns
- Recursion patterns
- Known standard library costs
It reports per-function Big-O complexity with line annotations that AI agents can access as a tool.
What It Detects
The tool identifies specific complexity patterns:
.contains()inside aforloop → O(n²).sort()with.indexOf()in the comparator → O(n² log n)- Branching recursion like fibonacci → O(2ⁿ)
- Constant-bound loops like
for i in range(10)→ O(1)
Supported Languages
The tool currently supports JavaScript, TypeScript, Python, Java, Kotlin, and Dart.
Real-World Application
The developer ran the tool on its own codebase and found:
- O(n³) in the directory scanner
- O(n²) in the formatting utils
These issues were fixed based on the tool's own report, demonstrating practical self-improvement.
Availability
Time Complexity MCP is open source with prebuilt releases available at https://github.com/Luzgan/time-complexity-mcp.
📖 Read the full source: r/ClaudeAI
👀 See Also

Dual DGX Sparks vs Mac Studio M3 Ultra: Practical Comparison for Running Qwen3.5 397B Locally
A developer compared running Qwen3.5 397B locally on a $10K Mac Studio M3 Ultra 512GB and a $10K dual DGX Spark setup. The Mac Studio achieved 30-40 tok/s with 800 GB/s bandwidth but slow prefill, while the Sparks delivered 27-28 tok/s with faster compute but complex setup.

Benchmark: Gemma4 12B vs Qwen3 8B quantized on 24GB Mac Mini
A developer tested Gemma4 12B against Qwen3:8b-q4_K_M on a 24GB Mac Mini using two prompts. Qwen3 processed prompts 4-5x faster, while Gemma4 generated output slightly faster.

OpenClaw 2026.3.23 adds DeepSeek provider, Qwen pay-as-you-go, and Chrome MCP improvements
OpenClaw v2026.3.23 introduces a DeepSeek provider plugin, Qwen pay-as-you-go pricing, OpenRouter auto pricing with Anthropic thinking order, Chrome MCP tab waiting, and fixes for Discord/Slack/Matrix and Web UI.

Claude Review: IntelliJ Plugin for Real-Time Code Review with Claude Code
Claude Review is an open-source IntelliJ plugin that automatically reviews code changes on every file save using Claude Code. It sends unstaged git diffs to Claude with customizable prompts and displays findings as native IntelliJ annotations.