N Lobby MCP Server
The N Lobby MCP Server provides secure access to N Lobby school portal data through a Model Context Protocol (MCP) compliant interface.
Secure Authentication: Interactive browser-based login, manual cookie setup, and session management with authentication verification
Access School Information: Retrieve announcements, news articles, daily schedules, and learning resources with ability to mark news as read
Academic Management: Get comprehensive required course information with progress tracking, credits, grades, and filtering by grade level, category, or semester
Calendar Events: Access personal and school calendars with flexible filtering by predefined periods (today, week, month) or custom date ranges
User Profile Access: Retrieve current user-specific information with support for different roles (students, parents, staff) based on email domains
Advanced Features: Filter and sort data with options for news sorting, course filtering, and date range selection
Troubleshooting Tools: Debug authentication, test endpoints, verify system status, check API connection health, and test page content retrieval
MCP Client Integration: Compatible with various MCP-enabled AI assistants like Cursor and Claude Desktop for seamless setup
Supports environment variable configuration for customizing the N Lobby base URL and MCP server settings
Hosts the repository for development installation of the nlobby-mcp server
Supports configuration for Claude Desktop on macOS systems via specific configuration paths
Provides installation and distribution of the nlobby-mcp package to enable easy setup of the MCP server
Used for package management and running development scripts for the MCP server
Enables communication with N Lobby's tRPC endpoints to retrieve and interact with school portal data including news, schedules, and academic information
The MCP server is built with TypeScript, providing type-safe access to N Lobby's API endpoints and data structures
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@N Lobby MCP Server show me today's class schedule"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
N Lobby CLI
Note: The developer assumes no responsibility for any damages that may occur from using this tool. This software was developed for educational purposes and its operation is not guaranteed.
A dual-mode CLI and Model Context Protocol (MCP) server for accessing N Lobby school portal data. Use it interactively from the terminal with nlobby, or connect it to an AI assistant as an MCP server with nlobby serve.
Features
CLI Mode: Access N Lobby data directly from the terminal — news, schedule, courses, profile, and more
MCP Mode: Full MCP server compatible with Claude, Cursor, and other MCP-enabled AI assistants
Browser-based Authentication: Interactive login via automated Puppeteer browser window
Session Persistence: CLI mode saves cookies to
~/.nlobby/sessionfor seamless subsequent useSchool Information Access: Retrieve announcements, schedules, and learning resources
Required Courses Management: Access required course information and academic data
Multiple Calendar Types: Support for both personal and school calendars
User Role Support: Different access levels for students, parents, and staff
Related MCP server: OpenEdu MCP Server
Installation
Option 1: Install from npm (Recommended)
npm install -g nlobby-cliOption 2: Development Installation
Clone the repository:
git clone https://github.com/minagishl/nlobby-cli.git
cd nlobby-cliInstall dependencies:
pnpm installBuild the project:
pnpm run buildConfiguration
Create a .env file if you need to override defaults (optional):
NLOBBY_BASE_URL=https://nlobby.nnn.ed.jp
MCP_SERVER_NAME=nlobby-cli
MCP_SERVER_VERSION=1.0.0CLI Usage
Authentication
# Interactive browser login (recommended)
nlobby login
# Set cookies manually
nlobby cookies set "__Secure-next-auth.session-token=ey...;"
# Check current authentication status
nlobby cookies checkNews
# List latest news (default: 10, newest first)
nlobby news
# Filter and sort
nlobby news --limit 20 --category お知らせ --sort oldest --unread
# Show full article
nlobby news show 980
# Download the first attachment to /tmp
nlobby news download 980 --index 1 --output-dir /tmp
# Mark as read
nlobby news read 980Schedule & Calendar
# Today's schedule
nlobby schedule
# Specific date
nlobby schedule 2026-04-01
# This week's personal calendar
nlobby calendar
# School calendar for a date range
nlobby calendar --type school --from 2026-04-01 --to 2026-04-07Courses
# All required courses
nlobby courses
# Filter by grade / semester
nlobby courses --grade 2 --semester 2025Profile & Health
nlobby profile
nlobby healthMCP Server
# Start MCP server (stdio transport)
nlobby serve
# or
nlobby mcpAll commands support
--jsonto output raw JSON instead of formatted text.
MCP Usage
Cursor IDE Setup
Add the following to your Cursor settings (~/.cursor/config.json):
{
"mcpServers": {
"nlobby": {
"command": "npx",
"args": ["-y", "nlobby-cli", "serve"],
"env": {
"NLOBBY_BASE_URL": "https://nlobby.nnn.ed.jp"
}
}
}
}Claude Desktop Setup
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"nlobby": {
"command": "npx",
"args": ["-y", "nlobby-cli", "serve"],
"env": {
"NLOBBY_BASE_URL": "https://nlobby.nnn.ed.jp"
}
}
}
}Other MCP Clients
For any MCP-compatible client, use:
Command:
nlobby serve(if installed globally) ornode /path/to/dist/index.js serveProtocol: stdio
Environment: Optional environment variables as listed in the Configuration section
MCP Resources
URI | Description |
| School news and notices |
| Daily class schedule and events |
| Required courses and academic information |
| Current user information |
MCP Tools
Authentication
Tool | Description |
| Open browser for manual login (recommended) |
| Personalized login help and troubleshooting |
| Manually set authentication cookies |
| Check authentication cookie status |
| Verify authentication status across all clients |
News
Tool | Key Parameters | Description |
|
| Retrieve school news with filtering |
|
| Full detail for a specific article |
|
| Mark articles as read |
| Unread count and important-news flags |
Schedule & Calendar
Tool | Key Parameters | Description |
|
| Schedule for a date (YYYY-MM-DD) |
|
| Calendar events (personal/school) |
|
| Test both calendar endpoints |
| Lobby calendar filter definitions |
Courses & Exams
Tool | Key Parameters | Description |
|
| Required courses with progress tracking |
|
| Check if a date is an exam day |
| End exam day mode | |
| Get one-time password for exam |
Account & Navigation
Tool | Description |
| Extract account info from Next.js page |
| Capture student ID card screenshot |
| Update last access timestamp |
| Main navigation menu list |
| Notification messages |
| User interest tags (with optional icon data) |
| Interest weight scale definitions |
Debugging
Tool | Key Parameters | Description |
| Test N Lobby API connection | |
|
| Detailed connection debugging |
|
| Page content retrieval testing |
|
| Test a specific tRPC endpoint |
Authentication Flow
Method 1: Interactive Browser Login (Recommended)
CLI:
nlobby loginMCP tool: interactive_login
A browser window opens automatically. Complete the N Lobby login, and cookies are extracted and saved.
Method 2: Manual Cookie Setup
Log in to N Lobby in your web browser
Open DevTools → Application / Storage → Cookies
Copy all cookies as a string
CLI:
nlobby cookies set "__Secure-next-auth.session-token=ey...;"MCP tool: set_cookies cookies="__Secure-next-auth.session-token=ey...;"
User Types
The server supports three user types based on email domain:
Type | Email Domain |
Students |
|
Staff |
|
Parents | Any other registered email |
Project Structure
src/
├── index.ts # Entry point — CLI vs MCP mode detection
├── config.ts # Configuration management
├── logger.ts # Logging utilities
├── trpc-client.ts # tRPC client for API calls
├── types.ts # TypeScript type definitions
├── api/
│ ├── index.ts # NLobbyApi facade + session persistence
│ ├── context.ts # ApiContext interface
│ ├── shared.ts # Shared utilities (fetchRenderedHtml, …)
│ ├── news.ts # News functions
│ ├── schedule.ts # Schedule / calendar functions
│ ├── courses.ts # Course / exam functions
│ ├── account.ts # Account info / student card functions
│ ├── navigation.ts # Navigation / notification / interest functions
│ └── health.ts # Health check / debug functions
├── auth/
│ ├── browser.ts # Puppeteer browser authentication
│ ├── nextauth.ts # NextAuth.js session handling
│ └── credentials.ts # Credential validation and guidance
├── cli/
│ ├── index.ts # Commander program wiring
│ ├── commands/ # login, news, schedule, courses, profile, health, serve
│ └── formatters/ # Human-readable output formatters
└── mcp/
└── server.ts # MCP server (28 tools, 4 resources)Development
Scripts
pnpm run build # Build (esbuild bundle + tsc type declarations)
pnpm run dev # Watch mode
pnpm run start # Start MCP server
pnpm run lint # Lint
pnpm run format # FormatSecurity Notes
CLI cookies are stored in
~/.nlobby/session(plain text — protect accordingly)MCP mode keeps all authentication tokens in memory only
Browser automation is used only for authentication, not data scraping
No sensitive data is logged
License
This project is licensed under the MIT License — see the LICENSE file for details.
Available Tools
33 toolscheck_cookiesB
Check if authentication cookies are set
Inputs: no named parameters.
check_exam_dayA
Check if the specified date (or today if omitted) is an exam day
Inputs: date.
debug_connectionC
Debug N Lobby connection with detailed information
Inputs: endpoint.
download_news_attachmentC
Download a news article attachment using the authenticated session
Inputs: newsId (required), index, outputDir.
finish_exam_day_modeC
Finish exam day mode
Inputs: no named parameters.
get_account_infoB
Extract account information by parsing Next.js flight data from a rendered page
Inputs: no named parameters.
get_calendar_eventsC
Get calendar events with advanced options
Inputs: period, to_date, from_date, calendar_type.
get_calendar_filtersB
Get lobby calendar filter list
Inputs: no named parameters.
get_designated_schoolB
Fetch designated school (指定校) recommendations from the secure student portal (/mypage/designated_school/index)
Inputs: page, freeword, html_only, prefectures, +7 more.
get_exam_otpC
Get one-time password for exam
Inputs: no named parameters.
get_interest_weightsB
Get interest weight scale definitions
Inputs: no named parameters.
get_learning_resourcesC
Get learning resources and study materials
Inputs: subject.
get_newsC
Retrieve school news
Inputs: tab, sort, limit, category.
get_news_detailC
Retrieve detailed information for a specific news article
Inputs: newsId (required), markAsRead.
get_notificationsC
Get notification messages
Inputs: no named parameters.
get_required_coursesB
Retrieve required courses information with detailed progress tracking
Inputs: grade, category, semester.
get_scheduleB
Get school schedule for a specific date (backward compatibility)
Inputs: date.
get_schoolingA
Fetch schooling schedule from the secure student portal (/mypage/schooling/top)
Inputs: html_only.
get_schooling_detailA
Fetch schooling application details (申し込み内容) by entry ID from the secure portal
Inputs: entry_id (required), html_only.
get_student_card_screenshotB
Capture a screenshot of the student ID card by following the secure portal redirect flow
Inputs: no named parameters.
get_unread_news_infoA
Get unread news information including count and important news flags
Inputs: no named parameters.
get_user_interestsB
Get user interest tags (optionally with icon information)
Inputs: with_icon.
health_checkB
Check if N Lobby API connection is working
Inputs: no named parameters.
interactive_loginA
Open browser for manual login to N Lobby (no credentials required)
Inputs: no named parameters.
login_helpB
Get help and troubleshooting tips for N Lobby login
Inputs: email.
mark_news_as_readC
Mark news articles as read
Inputs: ids (required).
set_cookiesC
Set authentication cookies for N Lobby access
Inputs: cookies (required).
test_calendar_endpointsC
Test both personal and school calendar endpoints
Inputs: to_date, from_date.
test_page_contentC
Test page content retrieval and show sample content
Inputs: length, endpoint.
test_trpc_endpointC
Test specific tRPC endpoint with detailed response
Inputs: method, params.
update_last_accessB
Update the last access timestamp for the current user
Inputs: no named parameters.
verify_authenticationB
Verify authentication status and cookie synchronization across all clients
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 33 tools
Most tools have clearly distinct purposes, but there is some overlap between testing/debugging tools (test_calendar_endpoints, test_page_content, test_trpc_endpoint, debug_connection) and between get_schedule and get_schooling. Overall, the descriptions help differentiate them.
Tool names consistently follow a verb_noun pattern (e.g., check_cookies, get_account_info, mark_news_as_read). No mixed casing or inconsistent verb usage across the set.
At 33 tools, the set is quite large. Many tools are for debugging/testing (e.g., test_*, debug_connection, health_check), which are not core to the domain and could be consolidated. This feels excessive for an MCP server.
The server covers key areas like authentication, news, calendar, schooling, exams, and interests. However, the inclusion of many testing tools suggests the surface is not purely domain-focused. Some core operations (e.g., updating interests) are missing, but the overall coverage is reasonable.
Maintenance
Related MCP Connectors
Model Context Protocol server for Studex tools, notifications, and profile integrations
The Remote MCP server acts as a standardized bridge between LLM applications (like Claude, ChatGPT, and Cursor) and external services, enabling AI agents to access external tools and resources. Its primary capability is providing a centralized search tool to discover other MCP servers and their respective tools. Unlike local implementations, it runs remotely with OAuth authentication and permission controls for security.
The Telnyx MCP server is an official implementation of the Model Context Protocol that enables AI clients (like Claude Desktop, Cursor, and OpenAI Agents) to interact with Telnyx's telephony, messaging, and AI assistant APIs. It provides comprehensive capabilities including making and managing phone calls, sending SMS/MMS messages, purchasing and configuring phone numbers, creating AI assistants with custom instructions, managing cloud storage buckets, scraping and embedding website content, and handling integration secrets. The server exists as both a local implementation and a remotely hosted version, allowing developers to integrate real-world communication infrastructure directly into AI applications.
The Box MCP server is a secure gateway that connects external AI agents to enterprise content stored in Box, enabling agent-based document access, advanced search, and multi-file analysis while preserving Box security policies. It provides capabilities including keyword search, Box AI-powered Q&A across files, metadata extraction, file management, and authentication, all validated against Box's granular permission controls. The server integrates with major AI platforms like Anthropic Claude, Microsoft Copilot Studio, and Mistral Le Chat, and is available both as a Box-hosted remote server and a self-hosted open-source Python project.
Related MCP Servers
- AlicenseBqualityDmaintenanceA Model Context Protocol server that enables interaction with the Canvas Learning Management System API, allowing users to manage courses, assignments, enrollments, and grades within Canvas.546,480 npm104JavaScriptMIT
- AlicenseNot gradedqualityDmaintenanceA comprehensive Model Context Protocol server providing educational resources and curriculum planning support with intelligent filtering across multiple educational APIs.13MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that provides intelligent file reading and semantic search capabilities across multiple document formats with security-first access controls.7MIT
- AlicenseBqualityDmaintenanceA Model Context Protocol server that enables AI assistants to securely fetch and extract readable text content from web pages through a standardized interface.1MIT