OneNote浏览器
STDIO基于浏览器自动化的OneNote交互服务器
基于浏览器自动化的OneNote交互服务器
An MCP (Model Context Protocol) server for browsing and interacting with OneNote web app using browser automation. This server enables AI assistants and other MCP-compatible clients to programmatically browse and interact with OneNote notebooks that are shared via web links.
# Clone the repository or create the project structure # Then navigate to the project directory cd onenote-mcp # Install the package and dependencies pip install -e . # Install Playwright browsers playwright install
You can run the server directly with:
python -m onenote_mcp
{ "mcpServers": { "onenote": { "command": "python", "args": ["-m", "onenote_mcp"] } } }
Can you help me navigate my OneNote notebook at https://example.com/my-shared-notebook?
First, please launch OneNote with this URL and tell me what notebooks are available.
launch_onenote(shared_url)
: Launch the OneNote web app with a shared notebook URLget_all_notebooks()
: List all available notebooksget_all_sections()
: List all sections in the current notebookget_all_pages()
: List all pages in the current sectionnavigate_to_notebook_by_name(notebook_name)
: Go to a specific notebooknavigate_to_section_by_name(section_name)
: Go to a specific sectionnavigate_to_page_by_name(page_name)
: Go to a specific pageget_current_page_content()
: Get the content of the current pageadd_content_to_page(content)
: Add content to the current pagecreate_new_page_with_name(page_name)
: Create a new pagesearch_in_onenote(search_term)
: Search OneNote for specific termstake_screenshot()
: Take a screenshot of the current viewget_onenote_state()
: Get the current state informationclose_onenote()
: Close the OneNote session and clean up resourcesThis MCP server uses browser-use, a browser automation framework, to interact with the OneNote web interface. It creates a bridge between MCP-compatible AI assistants and the OneNote web application, enabling programmatic control of OneNote functions.
MIT