OctoCounts MCP Server
io.github.huanglizhuo/octocounts-mcp · 15 stars · JavaScript · MIT
MCP server Analyze and compare public GitHub repo line counts (SLOC) via OctoCounts, from any MCP client.
Install
The repo has no one-line install. Follow its README.
Published as
- npm
octocounts-mcpstdio
From the server's entry in the official MCP Registry.
Files
OctoCounts MCP Server
Expose OctoCounts SLOC reports to AI coding tools (Claude, Cursor, and any MCP client).
Tools:
analyze_repo: count files, lines, code, comments, blanks, and languages for a public GitHub repo.compare_repos: compare two public GitHub repos or refs.
Usage
Run via npx (no install needed):
{
"mcpServers": {
"octocounts": {
"command": "npx",
"args": ["-y", "octocounts-mcp"]
}
}
}
Or from a local checkout:
{
"mcpServers": {
"octocounts": {
"command": "node",
"args": ["/absolute/path/to/OctoCounts/mcp/src/index.js"],
"env": {
"OCTOCOUNTS_API_BASE": "https://api.octocounts.com"
}
}
}
}
OCTOCOUNTS_API_BASE defaults to https://api.octocounts.com.
Local protocol smoke test:
node mcp/src/index.js
The server speaks MCP over stdio with Content-Length framed JSON-RPC messages.
License
MIT
Reliable analyses and repository declarations
Both tools accept optional boolean respect_gitattributes (default false). Enabling it excludes repository-declared generated and vendored files under the canonical profile. Compare output includes counting_policy_compatibility: same, different or unknown, and explains that deltas are net size changes. Report links pin saved IDs and commit SHAs.
Analysis requests use bounded safe retries, long-polling and a five-minute total deadline. Errors retain job IDs and recovery URLs. Stdio clients may send notifications/cancelled with the original requestId; HTTP requests cancel their waits when disconnected. Cancellation stops client waiting; accepted backend jobs can still finish and be recovered. Saved records can expire from the cache.
Facts
- Kind
- MCP server
- Group
- Uncategorized
- Stars
- 15
- License
- MIT
- Language
- JavaScript
- Last push
- 2026-10-11
- Forks
- 2
- MCP Registry
- io.github.huanglizhuo/octocounts-mcp
- Homepage
- octocounts.com
- Topics
- chrome-extension, sloc, browser-extension, code-metrics, developer-tools, github-extensions, rust, tokei
- 1REAio.github.morluto/reaReverse engineer anything from your terminal or agent with one CLI and MCP server.125.3k
- 2com.browser-use/browser-usecom.browser-use/browser-useControl a real Chrome browser to complete any task: fill forms, extract data, book flights.117.7k
- 3World Monitorapp.worldmonitor/mcpLive markets, conflicts, country risk, chokepoints, energy, and China decision signals. 93 tools.88.3k
- 4Scrapling MCP Serverd4vinci/scrapling🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scraplingdev86.9k
- 5Everythingmodelcontextprotocol/serversThis MCP server attempts to exercise all the features of the MCP protocol. It is not intended to be a useful server, but rather a test server for builders of MCP clients. It implements prompts, tools, resources, sampling, and more to showcase MCP capabilities.85.8k
- 6Fetchmodelcontextprotocol/serversA Model Context Protocol server that provides web content fetching capabilities. This server enables LLMs to retrieve and process content from web pages, converting HTML to markdown for easier consumption.85.8k