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

MCP Agent Options

Update the server config path

Update MCP Server Config

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

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

License

This project is licensed under the MIT License - see the LICENSE file for details.