Agentation MCP (Model Context Protocol) is a Node.js server designed to provide visual feedback to AI coding agents, such as Claude Code. It facilitates a two-way communication channel where a browser toolbar can send web page annotations to the server, and AI agents can consume these annotations as actionable feedback. The server exposes both an HTTP API for browser interaction (e.g., creating sessions, adding annotations) and an MCP interface (via stdio) to AI agents, offering tools to list, retrieve, acknowledge, resolve, and dismiss annotations. It also supports 'hands-free mode' for continuous agent processing via a `watch_annotations` tool. Currently at version 1.2.0, the package primarily focuses on CLI-driven server operation but ships with TypeScript types, implying programmatic integration is possible. Its key differentiator is providing a structured, visual feedback loop specifically for AI agents interacting with web content.
npm install agentation-mcpVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to programmatically start the Agentation MCP server, configuring its port and other options via environment variables, and includes basic signal handling for graceful shutdown.
Consult the TypeScript declaration files (`.d.ts`) or source code to understand the exact programmatic API if you intend to embed the server rather than use the CLI.
Ensure your Node.js environment is version 18.0.0 or higher. Use `nvm use 18` or similar version management tools.
When integrating with AI agent runners, ensure that the stdio pipes are correctly established and managed for the `agentation-mcp server` process. Refer to the specific AI agent's documentation (e.g., Claude Code) for integration guidelines.
Change the port using the `--port` option for the CLI (e.g., `agentation-mcp server --port 8080`) or by setting the `AGENTATION_PORT` environment variable if running programmatically.
Run `npx agentation-mcp doctor` to diagnose setup issues. If the problem persists, try `npx agentation-mcp init` again to re-run the interactive setup wizard, ensuring Claude Code is running and accessible.
Verify the exact export names and module structure by inspecting the package's `index.d.ts` or source code. If the package is ESM-only (likely for Node.js 18+), ensure your consuming project is also configured for ESM (e.g., `"type": "module"` in `package.json`). If `startServer` is a default export, use `import startServer from 'agentation-mcp';`.
No dependency data recorded yet.