
dynamic tool mcp server
A basic MCP server using the SSE transport that can be used to test dynamic tool creation/management
Repository Info
About This Server
A basic MCP server using the SSE transport that can be used to test dynamic tool creation/management
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
Dynamic Tool MCP Server
This is a basic MCP (Model Control Protocol) server implementation designed for testing MCP clients. The server demonstrates dynamic tool management capabilities, allowing tools to be added at runtime.
Features
The server comes with two built-in tools:
-
Hello Tool (
hello)- A simple greeting tool that takes a name parameter
- Returns a greeting message
- Example:
hello("World")returns "Hello, World!"
-
Add Tool Tool (
add_tool)- Dynamically adds new tools to the MCP server
- Takes a tool name and description as parameters
- After adding a tool, notifies connected MCP clients about the tool list change
- Clients should respond by requesting an updated tool list
Dynamic Tool Management
The server implements the MCP protocol's dynamic tool management feature. When a new tool is added using the add_tool tool:
- The tool is registered with the server
- The server sends a notification to all connected clients about the tool list change
- Clients should respond by requesting an updated tool list
- The new tool becomes immediately available for use
This functionality makes this server ideal for testing MCP client implementations, particularly their ability to:
- Handle dynamic tool list updates
- Request and process updated tool lists
- Support runtime tool registration
Getting Started
-
Install dependencies:
npm install -
Start the server:
npm start
The server will run on http://localhost:4100 by default.
Configuration
The server can be configured through the .cursor/mcp.json file:
{
"mcpServers": {
"dynamic-tool": {
"url": "http://localhost:4100/sse"
}
}
}
Testing
This server is particularly useful for testing MCP client implementations that need to handle dynamic tool management. It allows you to verify that your client:
- Correctly processes tool list change notifications
- Properly requests and handles updated tool lists
- Can use newly added tools immediately after they're registered
Quick Start
Clone the repository
git clone https://github.com/scitara-cto/dynamic-tool-mcp-serverInstall dependencies
cd dynamic-tool-mcp-server
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.