scc-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@scc-mcpcount lines of code in the current directory"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
scc-mcp
An MCP server that exposes
boyter/scc — a fast code-counting and
complexity tool — to LLM agents.
It wraps scc in a small set of read-only tools so an agent can count lines of
code, find the largest or most complex files, break stats down by language, and
estimate project cost without learning the scc CLI.
Requirements
sccinstalled and on yourPATH(it is an external binary, not a Python dependency, and is not installed for you). Verify withscc --version.
Related MCP server: CodeToPrompt MCP Server
Install
uv syncRun
The server speaks MCP over stdio:
uv run scc-mcpTools
All tools are read-only. They default to scanning the current working directory
and return human-readable markdown, or structured JSON when
response_format: "json" is passed. Most accept include/exclude extension and
directory filters.
Tool | Description |
| CLOC (code/comment/blank/lines) per language, plus totals. |
| Top N files sorted by a metric ( |
| CLOC broken down per language/extension. |
| Files ranked by cyclomatic complexity (refactor targets). |
| COCOMO cost / schedule / people estimate. |
| Detailed per-file metrics for a file or filtered subset. |
| Languages scc recognizes and their file extensions. |
Use with opencode
This repo registers the server as a local MCP in opencode.json:
{
"mcp": {
"scc": {
"type": "local",
"command": ["uv", "run", "scc-mcp"],
"enabled": true
}
}
}For other MCP clients, point them at the same uv run scc-mcp command (stdio
transport).
Development
uv run pytest # run the test suite
make build # build sdist + wheel into dist/Tests that shell out to scc are skipped automatically when it is not on
PATH. See AGENTS.md for module layout and conventions.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseBqualityDmaintenanceEnables analysis and querying of Git repository content (both public and private) through a unified tool that provides repository summaries, file structures, and full content optimized for LLM consumption.Last updated1
- AlicenseBqualityDmaintenanceExposes the codetoprompt library to LLM agents for generating comprehensive prompts from directories and retrieving specific file contents. It enables codebase analysis through detailed statistics like token counts and file type breakdowns.Last updated31MIT
- Alicense-qualityCmaintenanceProvides secure and efficient tools for codebase analysis, including file management, metadata retrieval, and dependency tree traversal. It allows LLMs to explore project structures and search for configuration files within a restricted root directory.Last updated153MIT
- Flicense-qualityDmaintenanceEnables LLMs to perform high-performance code search and analysis across multiple languages using symbol indexing, regex text search, and structural AST pattern matching. It also provides tools for technology stack detection and dependency analysis with persistent caching for optimized performance.Last updated6
Related MCP Connectors
Repo intel for AI coding agents: overview, PRs, contributors, hot files, CI, deps. Remote MCP.
Securely search and manage workspace context files for AI agents and teams.
Enterprise code intelligence for M&A, security audits, and tech debt. Hosted server with 200k free.
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/NicholasSynovic/scc-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server