The interactive-mcp server enables direct communication between Large Language Models (LLMs) and users, allowing for interactive dialogue through notifications and command-line prompts. It's designed to run locally alongside MCP clients like Claude Desktop or VS Code to provide a more intuitive AI assistance experience.
You can configure your MCP client to automatically download and run the interactive-mcp server when needed.
Add this configuration to your claude_desktop_config.json
(Claude Desktop) or mcp.json
(Cursor):
{
"mcpServers": {
"interactive": {
"command": "npx",
"args": ["-y", "interactive-mcp"]
}
}
}
Add this configuration to your User Settings (JSON) file or .vscode/mcp.json
:
{
"mcp": {
"servers": {
"interactive-mcp": {
"command": "npx",
"args": ["-y", "interactive-mcp"]
}
}
}
}
To use a particular version of the server:
{
"mcpServers": {
"interactive": {
"command": "npx",
"args": ["-y", "[email protected]"]
}
}
}
For a better experience on macOS with Terminal.app, configure your terminal profile:
You can customize the server behavior by adding command-line flags to the args
array in your client configuration:
Set the timeout for user prompts (defaults to 30 seconds):
{
"mcpServers": {
"interactive": {
"command": "npx",
"args": ["-y", "interactive-mcp", "-t", "30"]
}
}
}
Disable specific functionality if needed:
{
"mcpServers": {
"interactive": {
"command": "npx",
"args": [
"-y", "interactive-mcp",
"--disable-tools", "message_complete_notification,intensive_chat"
]
}
}
}
The interactive-mcp server provides these tools:
This server is particularly useful for:
When using this MCP server with an LLM, follow these best practices:
You can provide these instructions to an LLM client with:
# Interaction
- Please use the interactive MCP tools
- Please provide options to interactive MCP if possible
# Reduce Unexpected Changes
- Do not make assumptions
- Ask more questions before executing, until you think the requirement is clear enough
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"cursor-rules-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-rules-mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.