dynamic-tool-mcp-server
Dynamic Tool MCP Server is a basic implementation designed for testing MCP clients with dynamic tool management capabilities.
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
Related MCP Servers
View all developer_tools servers →context7
by upstash
Context7 MCP provides up-to-date, version-specific documentation and code examples directly into your prompt, enhancing the capabilities of LLMs by ensuring they use the latest information.
git-mcp
by idosal
GitMCP is a free, open-source, remote Model Context Protocol (MCP) server that transforms GitHub projects into documentation hubs, enabling AI tools to access up-to-date documentation and code.
exa-mcp-server
by exa-labs
A Model Context Protocol (MCP) server allows AI assistants to use the Exa AI Search API for real-time web searches in a secure manner.
Sequential Thinking
by modelcontextprotocol
An MCP server implementation that provides a tool for dynamic and reflective problem-solving through a structured thinking process.
Everything MCP Server
by modelcontextprotocol
The Everything MCP Server is a comprehensive test server designed to demonstrate the full capabilities of the Model Context Protocol (MCP). It is not intended for production use but serves as a valuable tool for developers building MCP clients.
gateway
by centralmind
CentralMind Gateway is a tool designed to expose databases to AI agents via MCP or OpenAPI protocols, providing secure, LLM-optimized APIs.
mcpdoc
by langchain-ai
MCP LLMS-TXT Documentation Server provides a structured way to manage and retrieve LLM documentation using the Model Context Protocol.