bst-avl-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., "@bst-avl-mcpInsert 3, 1, 2 into AVL tree and visualize rotations"
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.
Educational MCP server to learn BST & AVL trees
A Model Context Protocol (MCP) server designed to help you learn and visualize Binary Search Trees (BST) and AVL Trees. This project implements these data structures in TypeScript, demonstrating core algorithms like insertion, deletion, and AVL rotations.
Features
Binary Search Tree (BST): Standard implementation.
AVL Tree: Self-balancing binary search tree with automatic rotations (Left, Right, Left-Right, Right-Left).
Visualization: Tools to print the tree structure to the console/client to see how it changes after operations.
Educational Tools: Explicitly designed to help users "hand trace" or visualize specific tree states.
Related MCP server: Rubik's Cube MCP Server
Installation
Clone the repository.
Install dependencies:
npm install
Usage
Building the Server
Compile the TypeScript code:
npm run buildRunning the Server
Start the MCP server (stdio transport):
npm startRunning Verification Tests
Run the included test script which demonstrates a sequence of insertions and rotations (based on a classic hand-tracing example):
npm testUsing with Claude Desktop
To use this server with the Claude Desktop app, add the following configuration to your claude_desktop_config.json file:
{
"mcpServers": {
"bst-avl": {
"command": "node",
"args": [
"/YourDirectory/bst-avl-mcp/build/index.js"
]
}
}
}Note: Update the path to match your project location.
Available Tools
reset_tree: Resets the specified tree (bstoravl) to be empty.insert_node: Inserts a number into the tree and returns the new visual structure.delete_node: Deletes a number from the tree and maintains balance (for AVL).search_node: Checks if a number exists in the tree.print_tree: Returns a string representation of the current tree hierarchy.
Project Structure
src/bst.ts: Basic BST implementation.src/avl.ts: AVL Tree implementation with rotation logic.src/index.ts: MCP Server entry point.src/types.ts: Shared TypeScript interfaces.
This server cannot be installed
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
- AlicenseCqualityDmaintenanceDeep directory tree visualization tool enabling efficient visualization of complex directory structures with AI-powered analysis capabilities.Last updated11914MIT
- AlicenseBqualityDmaintenanceEnables AI agents to solve Rubik's Cube puzzles through systematic manipulation with standard cube notation moves. Features real-time 3D visualization and interactive controls for tracking solving progress.Last updated467MIT
- Alicense-qualityCmaintenanceVisualizes Git history and commit logs with before/after animations for operations like merge, rebase, and cherry-pick. Integrates with AI assistants to provide Git analysis tools and smart command suggestions through natural language.Last updated1MIT
- Flicense-qualityDmaintenanceEnables AI models to generate interactive, clickable code walkthrough diagrams using Mermaid code and node descriptions. It provides a web interface for viewing, persisting, and sharing these diagrams via a local database and a dedicated share server.Last updated203
Related MCP Connectors
AI Agent with Architectural Memory. Impact analysis (free), tests and code from the graph (pro).
Generate dynamic Mermaid diagrams and charts with AI assistance. Customize styles and export diagr…
Multi-Agent AI Validation: X-Z-CS Trinity. 13 tools FREE. Auditable reasoning. v0.5.54
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/jakeoung/bst-avl-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server