nlobby
MCP server for N Lobby school portal
claude mcp add --transport stdio minagishl-nlobby-mcp npx -y nlobby-mcp \ --env MCP_SERVER_NAME="nlobby-mcp" \ --env NLOBBY_BASE_URL="https://nlobby.nnn.ed.jp" \ --env MCP_SERVER_VERSION="1.0.0"
How to use
This MCP server provides programmatic access to N Lobby school portal data via the MCP protocol. It exposes resources such as news, schedules, required courses, and user profiles, and supports authentication workflows using browser-based login or cookie management. Available tools include authentication utilities (interactive_login, login_help, set_cookies, check_cookies, verify_authentication), data retrieval tools (get_news, get_news_detail, get_required_courses, get_schedule, get_calendar_events, test_calendar_endpoints, mark_news_as_read), and debugging helpers (health_check, debug_connection, test_page_content, test_trpc_endpoint). You can connect to the server with an MCP client and issue these tool commands to fetch or manipulate data within your authorized N Lobby account. The server uses browser-based authentication to obtain cookies and then uses those cookies to access school data securely across clients.
How to install
Prerequisites:
- Node.js and npm (or pnpm for development steps)
- Basic familiarity with the MCP client you plan to use
Option 1: Install from npm (Recommended)
-
Install globally: npm install -g nlobby-mcp
-
Run the server (when installed globally): nlobby-mcp
Option 2: Development Installation
-
Clone the repository: git clone https://github.com/minagishl/nlobby-mcp.git cd nlobby-mcp
-
Install dependencies: pnpm install
-
Set up environment variables: cp .env.example .env
Edit .env if needed (default values should work)
-
Build the project: pnpm run build
Notes:
- The server reads configuration from a .env file. Ensure NLOBBY_BASE_URL is set to your N Lobby portal base URL.
- If you are using a different package manager, adjust commands accordingly (e.g., npm install, npm run build).
Additional notes
Tips and common considerations:
- Ensure NLOBBY_BASE_URL is correct to enable the login flow and data access.
- The interactive_login tool opens a browser for manual login; cookies are stored for subsequent requests.
- If you encounter authentication issues, use check_cookies and health_check to verify cookie status and connectivity.
- When using Cursor, Claude Desktop, or other MCP clients, you can point to the nlobby-mcp package via npx or a local node dist path as shown in the README.
- The server supports multiple calendar types (personal and school); use get_calendar_events with calendar_type and period filters to retrieve data.
- For development, keep your environment variables in a .env file and avoid exposing sensitive data in public configurations.
Related MCP Servers
context7
Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
obsidian -tools
Add Obsidian integrations like semantic search and custom Templater prompts to Claude or any MCP client.
MiniMax -JS
Official MiniMax Model Context Protocol (MCP) JavaScript implementation that provides seamless integration with MiniMax's powerful AI capabilities including image generation, video generation, text-to-speech, and voice cloning APIs.
mcp-bundler
Is the MCP configuration too complicated? You can easily share your own simplified setup!
akyn-sdk
Turn any data source into an MCP server in 5 minutes. Build AI-agents-ready knowledge bases.
promptboard
The Shared Whiteboard for Your AI Agents via MCP. Paste screenshots, mark them up, and share with AI.