MCP.Market

Thealgorithms MCP server

by mcande21·io.github.mcande21/thealgorithms-mcp·v0.3.1

Search TheAlgorithms across 24 languages; fetch implementations with examples.

B82/100grade B
What users say
No reviews yet
Be the first
Safety scan
B82/100

full report

Adoption
New

0 stars39 downloads/wk

Reviews

Write one

Nobody has reviewed Thealgorithms yet.

If you have run it, two minutes of your experience saves the next person an afternoon.

Thealgorithms tools (7)

write = sends, deletes, buys or posts

Read from the package source without running it. The installed server may list more.

  • compare

    Find the same algorithm across languages — returns only REAL matches.

  • get_algorithm

    Fetch one algorithm by language + repo-relative path (e.g. path='sorts/merge_sort.py').

  • get_category

    List every algorithm in one category (for a language) as {name, path}.

  • list_categories

    List the algorithm categories with entry counts for a language (default: python).

  • list_languages

    List indexed languages (auto-discovered from the TheAlgorithms org) and excluded repos.

  • search_algorithms

    Search one language's algorithms by name/topic. Returns ranked {name, category, path, score}.

  • suggest

    Autocomplete algorithm names by prefix (Trie-backed typeahead).

Public scan report

scanner v0.1.9 · 2026-09-27 · same rubric, same numbers if you re-run it

no findings
  • Code scan12 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 119 days ago8/15
  • Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
Overall 82/100. Components that don't apply are left out of the denominator. Any critical finding is an F.RubricAppeal a findingJSON

How Thealgorithms compares

Against every graded Web search MCP server, from our own scans and uptime checks. Updated after each scan run.

Safety score
82/100
higher than 68% of 3,470 Web search servers
Tools
7
the typical Web search server has 5
Tools that change things
0%
typical: 0%. Fewer write tools means less an agent can break
Downloads a week
39
more than 25% of 827 Web search servers with a package

What its tools let an agent do: 7 read

Install Thealgorithms in Claude Code, Cursor or VS Code

claude mcp add thealgorithms-mcp -- uvx thealgorithms-mcp
Add to Cursor

What the publisher says

From the Thealgorithms repository's README, as published. We do not edit it. Read it on GitHub

thealgorithms-mcp

mcp-name: io.github.mcande21/thealgorithms-mcp

An MCP server for querying the TheAlgorithms org across every language repo — search algorithm implementations and fetch any one with its in-file examples.

Languages are auto-discovered from the org (not a hardcoded list): a repo is indexed when it publishes a parseable DIRECTORY.md — currently 24 languages (Python, Java, C++, JavaScript, Rust, C, TypeScript, PHP, Dart, Kotlin, Ruby, R, Scala, Swift, Julia, Haskell, MATLAB, Zig, Fortran, Nim, Clojure, F#, Jule, aarch64-assembly). Repos without a DIRECTORY.md (Go, C#, Lua, Solidity, …) are reported by list_languages with their exclusion reason — no silent gaps.

Hybrid design: each repo's DIRECTORY.md index is cached locally (ETag + TTL); file contents are fetched on demand from raw.githubusercontent.com. The org/language manifest is auto-discovered via the GitHub API and cached 7 days. No token required (set GITHUB_TOKEN to raise the rate limit). See DESIGN.md.

Tools

language accepts names or aliases (cpp/c++, js, ts, …). Typical flow: searchalgorithms("dijkstra", language="rust") → getalgorithm("src/graph/dijkstra.rs", language="rust"). Examples are extracted where the language has an in-file convention (Python doctests, Rust doc-tests); other languages return source plus a note.

Install

From PyPI (recommended):

{ "thealgorithms": { "command": "uvx", "args": ["thealgorithms-mcp"] } }

From GitHub:

{ "thealgorithms": {
    "command": "uvx",
    "args": ["--from", "git+https://github.com/mcande21/thealgorithms-mcp", "thealgorithms-mcp"] } }

From a local checkout (development):

uv sync
uv run thealgorithms-mcp          # serves over stdio

Add any of the above to ~/.normandy-generic/mcp.json (or your MCP client config).

Verify

uv run python scripts/verify_stdio.py                 # multi-language contract over stdio
uv run python scripts/verify_language.py rust         # one language, end-to-end

The harness spawns the server over stdio and asserts every tool against the live org, including binary-search fetch across ≥8 languages and cross-language compare().

Nothing above is checked by us. What we check is on the safety report.

Thealgorithms: common questions

Is Thealgorithms MCP server safe?
Mostly: it is graded B (82/100). Read the Thealgorithms safety report
How do I install Thealgorithms?
It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
Does Thealgorithms need an API key?
Not as far as the registry entry and our scan can tell: no credentials are declared or required.
Is Thealgorithms maintained?
The last commit was 157 days ago (2026-05-31). The latest release is v0.3.1.
What can I use instead of Thealgorithms?
Servers from other publishers that do the same job: Jshookmcp MCP server, GitHits MCP server and Bitbybit CAD MCP server.
How does Thealgorithms compare with other Web search MCP servers?
safety score 82/100 (higher than 68% of 3,470 Web search servers); tools 7 (the typical Web search server has 5); tools that change things 0% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.

Alternatives to Thealgorithms

Same job from other publishers: the closest match first, then the best rated.

  • Jshookmcp
    Search-first MCP server for JavaScript reverse engineering: 735 tools across 36 domains.
    C
  • GitHits
    Search public open-source code, documentation, metadata, vulnerabilities, changelogs, and examples.
    A
  • Bitbybit CAD MCP
    Bitbybit 3D parametric CAD API, version-exact, for coding agents: search, describe, examples, guide
    A
  • Sui Knowledge Base (kapa.ai)
    Semantic search across Sui documentation and knowledge sources, powered by kapa.ai
    A
  • Free Search
    No-API-key web search, page fetching and document reading across many engines. Local-first.
    B