NBI MCP Agent
March 26, 2025 ยท View on GitHub
A Jupyter Notebook Intelligence MCP Agent extension
Note : NBI now supports MCP in built NBI MCP Support
- Adds @mcp-agent participant in the nbi
- Available commands with @mcp-agent
- @mcp-agent /help
- @mcp-agent /getMCPConfig To get current mcp server config
- @mcp-agent /updateMCPConfig To update the mcp server config

Update the server config path

The server json file is format should be like
{
"mcpServers": {
"weather": {
"command": "/Users/user/.local/bin/uv",
"args": [
"--directory",
"/Users/mcp/weather",
"run",
"weather.py"
]
},
"mcp-hn": {
"command": "uv",
"args": [
"--directory",
"/Users/mcp/mcp-hn-main/",
"run",
"mcp-hn"
]
}
}
}
Calling MCP Tools

Development install
# Clone the repo to your local environment
# Change directory to the nbi_mcp_agent directory
# Install package in development mode
pip install -e "."
# Server extension must be manually installed in develop mode
jupyter server extension enable nbi_mcp_agent
References
Extensions code is inspired or taken from below sources
- Introducing Notebook Intelligence!
- Building AI Agents for JupyterLab using Notebook Intelligence
- notebook-intelligence
- Building AI Extensions for JupyterLab
- MCP Simple Chatbot
- Chatbot example: clean up servers in correct order
License
This project is licensed under the MIT License - see the LICENSE file for details.