io.github.mcande21/thealgorithms-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| GITHUB_TOKEN | No | GitHub personal access token to raise the rate limit. Not required. |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_languagesA | List indexed languages (auto-discovered from the TheAlgorithms org) and excluded repos. Returns {languages: [{language, repo, count, aliases}], excluded: [{repo, reason}]}.
Use a returned |
| list_categoriesA | List the algorithm categories with entry counts for a language (default: python). |
| search_algorithmsA | Search one language's algorithms by name/topic. Returns ranked {name, category, path, score}. Feed a returned |
| get_categoryA | List every algorithm in one category (for a language) as {name, path}. |
| get_algorithmA | Fetch one algorithm by language + repo-relative path (e.g. path='sorts/merge_sort.py'). Returns {language, path, github_url, description, examples, line_count, source?}. Examples are
extracted where the language has an in-file convention (Python doctests, Rust doc-tests),
otherwise empty with a |
| compareA | Find the same algorithm across languages — returns only REAL matches. A per-language search scores 100-200 for a genuine match and well below for "nearest unrelated
thing", so results are filtered to score >= |
| suggestA | Autocomplete algorithm names by prefix (Trie-backed typeahead). Matches the start of the name or any word: 'dij' -> Dijkstra, 'search' -> Binary Search.
Returns up to |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
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/mcande21/thealgorithms-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server