{"_id":"@browsermcp/mcp","_rev":"14-165a03741191b41392729b2dc5393848","name":"@browsermcp/mcp","dist-tags":{"latest":"2.5.0"},"versions":{"0.1.0":{"name":"@browsermcp/mcp","version":"0.1.0","author":{"name":"Browser MCP"},"_id":"@browsermcp/mcp@0.1.0","maintainers":[{"name":"namukang","email":"namu@namu.org"}],"homepage":"https://browsermcp.io","bugs":{"url":"https://github.com/browsermcp/mcp/issues"},"bin":{"mcp-server-browsermcp":"dist/index.js"},"dist":{"shasum":"517c0915fdee84096cec4d851861497f1fdba1a6","tarball":"https://registry.npmjs.org/@browsermcp/mcp/-/mcp-0.1.0.tgz","fileCount":3,"integrity":"sha512-kG+bNpERN/V7/Q1r/QRtq11SHCcm02DcsKKGOl1RlWkLf9cV9xzPTvExoIiHNxMDcAlP7OgfmogfGiGTPyrm2Q==","signatures":[{"sig":"MEQCIHnz6UB8NfM6Z9stQF/l/ZqylWSHT/XnfEfbWugItnhDAiAeZNDubezfh1iXh0Czkh/9saGHHoXaGVCIhT2qnQ7E/g==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":21679},"type":"module","gitHead":"5af8665010ac4c92bb9081429103344c877500c7","scripts":{"build":"tsup src/index.ts --format esm && shx chmod +x dist/*.js","watch":"tsup src/index.ts --format esm --watch ","prepare":"npm run build","inspector":"CLIENT_PORT=9001 SERVER_PORT=9002 pnpx @modelcontextprotocol/inspector node dist/index.js","typecheck":"tsc --noEmit"},"_npmUser":{"name":"namukang","email":"namu@namu.org"},"_npmVersion":"10.9.0","description":"MCP server for browser automation using Browser MCP","directories":{},"_nodeVersion":"22.12.0","dependencies":{"ws":"^8.18.1","zod":"^3.24.2","commander":"^13.1.0","zod-to-json-schema":"^3.24.3","@modelcontextprotocol/sdk":"^1.8.0"},"_hasShrinkwrap":false,"devDependencies":{"shx":"^0.3.4","tsup":"^8.4.0","@types/ws":"^8.18.0","typescript":"^5.6.2","@repo/types":"workspace:*","@repo/utils":"workspace:*","@repo/config":"workspace:*","@r2r/messaging":"workspace:*","@repo/messaging":"workspace:*"},"_npmOperationalInternal":{"tmp":"tmp/mcp_0.1.0_1743826317647_0.1330594855146474","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@browsermcp/mcp","version":"0.1.1","author":{"name":"Browser MCP"},"_id":"@browsermcp/mcp@0.1.1","maintainers":[{"name":"namukang","email":"namu@namu.org"}],"homepage":"https://browsermcp.io","bugs":{"url":"https://github.com/browsermcp/mcp/issues"},"bin":{"mcp-server-browsermcp":"dist/index.js"},"dist":{"shasum":"ea58dbc6a72771c496997a915add0e66988d8c54","tarball":"https://registry.npmjs.org/@browsermcp/mcp/-/mcp-0.1.1.tgz","fileCount":3,"integrity":"sha512-zfibsnBvCcmCp0EcBafCc/HzZVMPQJWL81qbbJePNAQn1UehQ1ZTUf0zc+h6EflgJtJ+bxJ99C5oguuuwYRIkg==","signatures":[{"sig":"MEUCIE6Cmw+Y/kjvFTlovSwdBBrdJku9EBjxuNYtAM4CGl+DAiEAgBgkbWwr6RLP8TYdMBX4wzjMvwN4ndTasunLu2IKmPE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":21794},"type":"module","gitHead":"9b177f40233b0cbebdc44c8db72c729449764532","scripts":{"build":"tsup src/index.ts --format esm && shx chmod +x dist/*.js","watch":"tsup src/index.ts --format esm --watch ","prepare":"npm run build","inspector":"CLIENT_PORT=9001 SERVER_PORT=9002 pnpx @modelcontextprotocol/inspector node dist/index.js","typecheck":"tsc --noEmit"},"_npmUser":{"name":"namukang","email":"namu@namu.org"},"_npmVersion":"10.9.0","description":"MCP server for browser automation using Browser MCP","directories":{},"_nodeVersion":"22.12.0","dependencies":{"ws":"^8.18.1","zod":"^3.24.2","commander":"^13.1.0","zod-to-json-schema":"^3.24.3","@modelcontextprotocol/sdk":"^1.8.0"},"_hasShrinkwrap":false,"devDependencies":{"shx":"^0.3.4","tsup":"^8.4.0","@types/ws":"^8.18.0","typescript":"^5.6.2","@repo/types":"workspace:*","@repo/utils":"workspace:*","@repo/config":"workspace:*","@r2r/messaging":"workspace:*","@repo/messaging":"workspace:*"},"_npmOperationalInternal":{"tmp":"tmp/mcp_0.1.1_1744052007309_0.4039944961765729","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@browsermcp/mcp","version":"0.1.2","author":{"name":"Browser MCP"},"_id":"@browsermcp/mcp@0.1.2","maintainers":[{"name":"namukang","email":"namu@namu.org"}],"homepage":"https://browsermcp.io","bugs":{"url":"https://github.com/browsermcp/mcp/issues"},"bin":{"mcp-server-browsermcp":"dist/index.js"},"dist":{"shasum":"7782d47d68d39291598eb1f2e9b93bdca73eaa8e","tarball":"https://registry.npmjs.org/@browsermcp/mcp/-/mcp-0.1.2.tgz","fileCount":3,"integrity":"sha512-NxzwQF4tsCQjFSqH2fT+VvnM4jTzGrPtBnMcyoCXo7zcXvPV3uATd2CivSPw68pjvWcPogGklb8FYQMPNPHBzw==","signatures":[{"sig":"MEUCIQC0If68ZtYLVAH/9k0Cvcv+ODNmW7wxubeZS7WSDZGrQgIgDknYqjQQ2HpwCf2FPqKj1DhlEVRe2eiUprArIpZu/bU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":22006},"type":"module","_from":"file:browsermcp-mcp-0.1.2.tgz","scripts":{"build":"tsup src/index.ts --format esm && shx chmod +x dist/*.js","watch":"tsup src/index.ts --format esm --watch ","inspector":"CLIENT_PORT=9001 SERVER_PORT=9002 pnpx @modelcontextprotocol/inspector node dist/index.js","typecheck":"tsc --noEmit"},"_npmUser":{"name":"namukang","email":"namu@namu.org"},"_resolved":"/private/var/folders/h9/w16n2_sx4yzc5p0_c65svbsh0000gn/T/f2b60ce3c2c2f1ca98f5dd7a82caa528/browsermcp-mcp-0.1.2.tgz","_integrity":"sha512-NxzwQF4tsCQjFSqH2fT+VvnM4jTzGrPtBnMcyoCXo7zcXvPV3uATd2CivSPw68pjvWcPogGklb8FYQMPNPHBzw==","_npmVersion":"10.9.0","description":"MCP server for browser automation using Browser MCP","directories":{},"_nodeVersion":"22.12.0","dependencies":{"ws":"^8.18.1","zod":"^3.24.2","commander":"^13.1.0","zod-to-json-schema":"^3.24.3","@modelcontextprotocol/sdk":"^1.8.0"},"_hasShrinkwrap":false,"devDependencies":{"shx":"^0.3.4","tsup":"^8.4.0","@types/ws":"^8.18.0","typescript":"^5.6.2","@repo/types":"0.1.0","@repo/utils":"0.1.0","@repo/config":"0.1.0","@r2r/messaging":"0.1.0","@repo/messaging":"0.1.0"},"_npmOperationalInternal":{"tmp":"tmp/mcp_0.1.2_1744060532178_0.30054122661224714","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@browsermcp/mcp","version":"0.1.3","author":{"name":"Browser MCP"},"_id":"@browsermcp/mcp@0.1.3","maintainers":[{"name":"namukang","email":"namu@namu.org"}],"homepage":"https://browsermcp.io","bugs":{"url":"https://github.com/browsermcp/mcp/issues"},"bin":{"mcp-server-browsermcp":"dist/index.js"},"dist":{"shasum":"33586f3cff2ffaab226634f494f8537125c0be2a","tarball":"https://registry.npmjs.org/@browsermcp/mcp/-/mcp-0.1.3.tgz","fileCount":3,"integrity":"sha512-qavCgrXBJ49IlX+c9lp3pHGdv1JCA5r2C3+NyVTa5W2OH046BEgzA+vqiV3oAWqDpTh5WTSJjQcEYMHkvisFYg==","signatures":[{"sig":"MEUCIGADtA7HA/7tGSGo/AAYTFYZ/s//H+hBjkmO9qXiAB1PAiEAxQfhBtr0CYYXS7Z/d04hpjXgYbL1KNniiCMmXiZNm/g=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":22674},"type":"module","gitHead":"fb8429e443ecf4b438a6e14a32df4870e87681b5","scripts":{"build":"tsup src/index.ts --format esm && shx chmod +x dist/*.js","watch":"tsup src/index.ts --format esm --watch ","prepare":"npm run build","inspector":"CLIENT_PORT=9001 SERVER_PORT=9002 pnpx @modelcontextprotocol/inspector node dist/index.js","typecheck":"tsc --noEmit"},"_npmUser":{"name":"namukang","email":"namu@namu.org"},"_npmVersion":"10.9.0","description":"MCP server for browser automation using Browser MCP","directories":{},"_nodeVersion":"22.12.0","dependencies":{"ws":"^8.18.1","zod":"^3.24.2","commander":"^13.1.0","zod-to-json-schema":"^3.24.3","@modelcontextprotocol/sdk":"^1.8.0"},"_hasShrinkwrap":false,"devDependencies":{"shx":"^0.3.4","tsup":"^8.4.0","@types/ws":"^8.18.0","typescript":"^5.6.2","@repo/types":"workspace:*","@repo/utils":"workspace:*","@repo/config":"workspace:*","@r2r/messaging":"workspace:*","@repo/messaging":"workspace:*"},"_npmOperationalInternal":{"tmp":"tmp/mcp_0.1.3_1744385326288_0.6868951478919196","host":"s3://npm-registry-packages-npm-production"}},"2.0.0":{"name":"@browsermcp/mcp","version":"2.0.0","author":{"name":"Browser MCP"},"_id":"@browsermcp/mcp@2.0.0","maintainers":[{"name":"namuorg","email":"npm@namu.org"}],"homepage":"https://browsermcp.io","bugs":{"url":"https://github.com/browsermcp/mcp/issues"},"bin":{"mcp-server-browsermcp":"dist/index.js"},"dist":{"shasum":"ba26dd30ba3576f3d8da5dbeea25bcc47d8696e2","tarball":"https://registry.npmjs.org/@browsermcp/mcp/-/mcp-2.0.0.tgz","fileCount":5,"integrity":"sha512-Tx5mY+jLYsvM2SfZ9O45yy4tWFEkNAFRbpxoWyOMGt2y2cEonuVBXBtZ5XOs+3DmTQ2QXBAiMr5ZlytKqFpWqg==","signatures":[{"sig":"MEUCIQCaYsV7CgtwWEfzMUQBpEz7FzmVpLxWeOyTtlYCd1dxWgIgEawUI57icAXHBxR9qXLuD6i6uBp55uL314XS122KRfs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIAxNlJChl6+3eTTtD6ARK0BTdZHmnACiC+yUMkOfrmEmAiEAhmgPs6pHUiXLDrNDzmyEp/LxuxuWun8dsMA9kGEGdtA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":202863},"type":"module","gitHead":"9a1a08de37a3d25891a060a7bbce515313e2e23f","scripts":{"eval":"vitest run --config eval/vitest.config.ts","test":"vitest run","build":"tsup && shx chmod +x dist/index.js","watch":"tsup --watch","prepare":"npm run build","inspector":"CLIENT_PORT=9001 SERVER_PORT=9002 pnpx @modelcontextprotocol/inspector node dist/index.js","typecheck":"tsc --noEmit"},"_npmUser":{"name":"namuorg","email":"npm@namu.org"},"_npmVersion":"11.20.0","description":"MCP server for browser automation using Browser MCP","directories":{},"_nodeVersion":"24.21.0","dependencies":{"ws":"^8.18.3","zod":"^4.6.5","commander":"^14.0.1","playwright-core":"1.64.1","@modelcontextprotocol/sdk":"^1.32.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"shx":"^0.4.0","tsup":"^8.5.0","vitest":"^5.0.3","@types/ws":"^8.18.1","@r2r/types":"workspace:*","typescript":"^7.0.2","@types/node":"^24.19.1","@repo/config":"workspace:*","@anthropic-ai/sdk":"^0.135.0"},"_npmOperationalInternal":{"tmp":"tmp/mcp_2.0.0_1793057625304_0.21167317655791562","host":"s3://npm-registry-packages-npm-production"}},"2.1.0":{"name":"@browsermcp/mcp","version":"2.1.0","author":{"name":"Browser MCP"},"license":"Apache-2.0","_id":"@browsermcp/mcp@2.1.0","maintainers":[{"name":"namuorg","email":"npm@namu.org"}],"homepage":"https://browsermcp.io","bugs":{"url":"https://github.com/browsermcp/mcp/issues"},"bin":{"mcp-server-browsermcp":"dist/index.js"},"dist":{"shasum":"c8bd235a11c834245b49ffc2b7a128d3e4d91cdd","tarball":"https://registry.npmjs.org/@browsermcp/mcp/-/mcp-2.1.0.tgz","fileCount":5,"integrity":"sha512-spxc4aokeT9LV7TkB+fyvezKUVqw8OBKUtXsZ0Z823d94mMMv51UEyQXrPu6SNb9PAle4N6gUOWiXDHo2W6Sfw==","signatures":[{"sig":"MEUCIHFJVRllmbOfhcslh/1X0GYjVMnC6gJriRukpeoXN7ZGAiEA+x45uphiI1NmP7KfUpBG6ckyOEJJdPWJAivRiQAX0a8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":203995},"type":"module","_from":"file:browsermcp-mcp-2.1.0.tgz","scripts":{"eval":"vitest run --config eval/vitest.config.ts","test":"vitest run","build":"tsup && shx chmod +x dist/index.js","watch":"tsup --watch","inspector":"CLIENT_PORT=9001 SERVER_PORT=9002 pnpx @modelcontextprotocol/inspector node dist/index.js","typecheck":"tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","approver":{"name":"namuorg","email":"npm@namu.org"},"trustedPublisher":{"id":"github","oidcConfigId":"b851f6b4-d7ee-450f-a270-6b20cbb2f145"}},"_resolved":"/home/runner/work/browser-mcp/browser-mcp/oss/packages/mcp/browsermcp-mcp-2.1.0.tgz","_integrity":"sha512-spxc4aokeT9LV7TkB+fyvezKUVqw8OBKUtXsZ0Z823d94mMMv51UEyQXrPu6SNb9PAle4N6gUOWiXDHo2W6Sfw==","repository":{"url":"git+https://github.com/BrowserMCP/mcp.git","type":"git","directory":"packages/mcp"},"_npmVersion":"11.21.1","description":"MCP server for browser automation using Browser MCP","directories":{},"_nodeVersion":"24.22.1","dependencies":{"ws":"^8.18.3","zod":"^4.6.5","commander":"^14.0.1","playwright-core":"1.64.1","@modelcontextprotocol/sdk":"^1.32.1"},"_hasShrinkwrap":false,"devDependencies":{"shx":"^0.4.0","tsup":"^8.5.0","vitest":"^5.0.3","@types/ws":"^8.18.1","typescript":"^7.0.2","@types/node":"^24.19.1","@anthropic-ai/sdk":"^0.135.0","@browsermcp/protocol":"2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/mcp_2.1.0_1793087627716_0.17352037910019558","host":"s3://npm-registry-packages-npm-production"}},"2.2.0":{"name":"@browsermcp/mcp","version":"2.2.0","author":{"name":"Browser MCP"},"license":"Apache-2.0","_id":"@browsermcp/mcp@2.2.0","maintainers":[{"name":"namuorg","email":"npm@namu.org"}],"homepage":"https://browsermcp.io","bugs":{"url":"https://github.com/browsermcp/mcp/issues"},"bin":{"mcp-server-browsermcp":"dist/index.js"},"dist":{"shasum":"84168a5641308ff73b295540e678da8decf69274","tarball":"https://registry.npmjs.org/@browsermcp/mcp/-/mcp-2.2.0.tgz","fileCount":5,"integrity":"sha512-Kc30FLGFQ6P2lWfuLxCzyYO/u0Q3kXWw5pO29WoVmYDvqRZcMZ06Va7f6xr6D2jB4QKnTXyZPMnthB29HukjzA==","signatures":[{"sig":"MEYCIQDn/hOGi3CCG+JHtp+NtBeC7MGd9Fu28w2UvRgEyPwu+QIhAOFvVHcr/+cR8NR7BuCIQ5bU+z7wL5dCb/VgIw6OmP69","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":202067},"type":"module","_from":"file:browsermcp-mcp-2.2.0.tgz","scripts":{"eval":"vitest run --config eval/vitest.config.ts","test":"vitest run","build":"tsup && shx chmod +x dist/index.js","watch":"tsup --watch","inspector":"CLIENT_PORT=9001 SERVER_PORT=9002 pnpx @modelcontextprotocol/inspector node dist/index.js","typecheck":"tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","approver":{"name":"namuorg","email":"npm@namu.org"},"trustedPublisher":{"id":"github","oidcConfigId":"b851f6b4-d7ee-450f-a270-6b20cbb2f145"}},"_resolved":"/home/runner/work/browser-mcp/browser-mcp/oss/packages/mcp/browsermcp-mcp-2.2.0.tgz","_integrity":"sha512-Kc30FLGFQ6P2lWfuLxCzyYO/u0Q3kXWw5pO29WoVmYDvqRZcMZ06Va7f6xr6D2jB4QKnTXyZPMnthB29HukjzA==","repository":{"url":"git+https://github.com/BrowserMCP/mcp.git","type":"git","directory":"packages/mcp"},"_npmVersion":"11.21.1","description":"MCP server for browser automation using Browser MCP","directories":{},"_nodeVersion":"24.22.2","dependencies":{"ws":"^8.18.3","zod":"^4.6.5","commander":"^14.0.1","playwright-core":"1.64.1","@modelcontextprotocol/sdk":"^1.32.1"},"_hasShrinkwrap":false,"devDependencies":{"shx":"^0.4.0","tsup":"^8.5.0","vitest":"^5.0.3","@types/ws":"^8.18.1","typescript":"^7.0.2","@types/node":"^24.19.1","@anthropic-ai/sdk":"^0.135.0","@browsermcp/protocol":"2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/mcp_2.2.0_1793351286338_0.36424714684986925","host":"s3://npm-registry-packages-npm-production"}},"2.3.0":{"name":"@browsermcp/mcp","version":"2.3.0","author":{"name":"Browser MCP"},"license":"Apache-2.0","_id":"@browsermcp/mcp@2.3.0","maintainers":[{"name":"namuorg","email":"npm@namu.org"}],"homepage":"https://browsermcp.io","bugs":{"url":"https://github.com/browsermcp/mcp/issues"},"bin":{"mcp-server-browsermcp":"dist/index.js"},"dist":{"shasum":"c93d9f0200656d37e3198bd1799cb9b32432f647","tarball":"https://registry.npmjs.org/@browsermcp/mcp/-/mcp-2.3.0.tgz","fileCount":5,"integrity":"sha512-3h2eTzgx0v4MO9P87ynd/+9jXU+EDAjeARcWdLvmUjfzerycBmW9R0ym3iLYZvdT8ixwyFPhsf8LyNL9o3N2Yw==","signatures":[{"sig":"MEUCIQDWeCwP+4cJ/3+MGEJF9gvaDWmcd4+NIXdXY12wg9lPKQIgfzy66R/XVO6Saip1frPMoJHAfXRIOdoauZ50YQnIIvQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":202244},"type":"module","_from":"file:browsermcp-mcp-2.3.0.tgz","scripts":{"eval":"vitest run --config eval/vitest.config.ts","test":"vitest run","build":"tsup && shx chmod +x dist/index.js","watch":"tsup --watch","inspector":"CLIENT_PORT=9001 SERVER_PORT=9002 pnpx @modelcontextprotocol/inspector node dist/index.js","typecheck":"tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","approver":{"name":"namuorg","email":"npm@namu.org"},"trustedPublisher":{"id":"github","oidcConfigId":"b851f6b4-d7ee-450f-a270-6b20cbb2f145"}},"_resolved":"/home/runner/work/browser-mcp/browser-mcp/oss/packages/mcp/browsermcp-mcp-2.3.0.tgz","_integrity":"sha512-3h2eTzgx0v4MO9P87ynd/+9jXU+EDAjeARcWdLvmUjfzerycBmW9R0ym3iLYZvdT8ixwyFPhsf8LyNL9o3N2Yw==","repository":{"url":"git+https://github.com/BrowserMCP/mcp.git","type":"git","directory":"packages/mcp"},"_npmVersion":"11.21.1","description":"MCP server for browser automation using Browser MCP","directories":{},"_nodeVersion":"24.22.2","dependencies":{"ws":"^8.18.3","zod":"^4.6.5","commander":"^14.0.1","playwright-core":"1.64.1","@modelcontextprotocol/sdk":"^1.32.1"},"_hasShrinkwrap":false,"devDependencies":{"shx":"^0.4.0","tsup":"^8.5.0","vitest":"^5.0.3","@types/ws":"^8.18.1","typescript":"^7.0.2","@types/node":"^24.19.1","@anthropic-ai/sdk":"^0.135.0","@browsermcp/protocol":"2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/mcp_2.3.0_1793352352384_0.05557611336850754","host":"s3://npm-registry-packages-npm-production"}},"2.4.0":{"name":"@browsermcp/mcp","version":"2.4.0","author":{"name":"Browser MCP"},"license":"Apache-2.0","_id":"@browsermcp/mcp@2.4.0","maintainers":[{"name":"namuorg","email":"npm@namu.org"}],"homepage":"https://browsermcp.io","bugs":{"url":"https://github.com/browsermcp/mcp/issues"},"bin":{"mcp-server-browsermcp":"dist/index.js"},"dist":{"shasum":"e54fad4bf46bec2dd667fd1a02ec109e75efc096","tarball":"https://registry.npmjs.org/@browsermcp/mcp/-/mcp-2.4.0.tgz","fileCount":5,"integrity":"sha512-X167/YpGD0wHaOMgQLkgzfkfPz/LbchthE8AWtuWDkKQPWQ2PUshpHY0ff8OuUcfSlxuZwFWBv/LwyJYdENGYQ==","signatures":[{"sig":"MEYCIQD/cWVcSuoe0Oc5M+SXG3mR62uYxBz6aXMJzaR4+pvlMQIhAIWyEoa2xhpvqMVCOsT4S7YAnNuwQ1k2E6yyH4Fw9GjG","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":224224},"type":"module","_from":"file:browsermcp-mcp-2.4.0.tgz","scripts":{"eval":"vitest run --config eval/vitest.config.ts","test":"vitest run","build":"tsup && shx chmod +x dist/index.js","watch":"tsup --watch","inspector":"CLIENT_PORT=9001 SERVER_PORT=9002 pnpx @modelcontextprotocol/inspector node dist/index.js","typecheck":"tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","approver":{"name":"namuorg","email":"npm@namu.org"},"trustedPublisher":{"id":"github","oidcConfigId":"b851f6b4-d7ee-450f-a270-6b20cbb2f145"}},"_resolved":"/home/runner/work/browser-mcp/browser-mcp/oss/packages/mcp/browsermcp-mcp-2.4.0.tgz","_integrity":"sha512-X167/YpGD0wHaOMgQLkgzfkfPz/LbchthE8AWtuWDkKQPWQ2PUshpHY0ff8OuUcfSlxuZwFWBv/LwyJYdENGYQ==","repository":{"url":"git+https://github.com/BrowserMCP/mcp.git","type":"git","directory":"packages/mcp"},"_npmVersion":"11.21.1","description":"MCP server for browser automation using Browser MCP","directories":{},"_nodeVersion":"24.22.2","dependencies":{"ws":"^8.18.3","zod":"^4.6.5","commander":"^14.0.1","playwright-core":"1.64.1","@modelcontextprotocol/sdk":"^1.32.1"},"_hasShrinkwrap":false,"devDependencies":{"shx":"^0.4.0","tsup":"^8.5.0","vitest":"^5.0.3","@types/ws":"^8.18.1","typescript":"^7.0.2","@types/node":"^24.19.1","@anthropic-ai/sdk":"^0.135.0","@browsermcp/protocol":"2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/mcp_2.4.0_1793639848741_0.43806148507979614","host":"s3://npm-registry-packages-npm-production"}},"2.5.0":{"_id":"@browsermcp/mcp@2.5.0","bin":{"mcp-server-browsermcp":"dist/index.js"},"bugs":{"url":"https://github.com/browsermcp/mcp/issues"},"dist":{"shasum":"9083ccd71db0ea2344a43af74cf4e73940a6c92d","tarball":"https://registry.npmjs.org/@browsermcp/mcp/-/mcp-2.5.0.tgz","integrity":"sha512-d1uImDZY26216UiLtmxqc5HVIsTJnlZ/j/pmf6bJ4JgQau5vCK3bylhhxJ/75QrKBF/msZyg0UWQyCBqM9QXOA==","fileCount":5,"unpackedSize":236670,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIBcsOJTDvGny5vW7niZ+8iaDWXEzhuWSAu6OfNjqsO3TAiAN/vzp2IDbLF4cO8pXw6NMFOSBoappexU17Q+75wn83Q=="}]},"name":"@browsermcp/mcp","type":"module","_from":"file:browsermcp-mcp-2.5.0.tgz","author":{"name":"Browser MCP"},"license":"Apache-2.0","scripts":{"eval":"vitest run --config eval/vitest.config.ts","test":"vitest run","build":"tsup && shx chmod +x dist/index.js","watch":"tsup --watch","inspector":"CLIENT_PORT=9001 SERVER_PORT=9002 pnpx @modelcontextprotocol/inspector node dist/index.js","typecheck":"tsc --noEmit"},"version":"2.5.0","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"b851f6b4-d7ee-450f-a270-6b20cbb2f145"},"approver":{"name":"namuorg","email":"npm@namu.org"}},"homepage":"https://browsermcp.io","_resolved":"/home/runner/work/browser-mcp/browser-mcp/oss/packages/mcp/browsermcp-mcp-2.5.0.tgz","_integrity":"sha512-d1uImDZY26216UiLtmxqc5HVIsTJnlZ/j/pmf6bJ4JgQau5vCK3bylhhxJ/75QrKBF/msZyg0UWQyCBqM9QXOA==","repository":{"url":"git+https://github.com/BrowserMCP/mcp.git","type":"git","directory":"packages/mcp"},"_npmVersion":"11.21.2","description":"MCP server for browser automation using Browser MCP","directories":{},"maintainers":[{"name":"namuorg","email":"npm@namu.org"}],"_nodeVersion":"24.22.3","dependencies":{"ws":"^8.18.3","zod":"^4.6.7","commander":"^14.0.1","playwright-core":"1.65.0","@modelcontextprotocol/sdk":"^1.32.1"},"devDependencies":{"shx":"^0.4.0","tsup":"^8.5.0","vitest":"^5.1.0","@types/ws":"^8.18.1","typescript":"^7.0.2","@types/node":"^24.19.2","@anthropic-ai/sdk":"^0.135.0","@browsermcp/protocol":"2.0.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/mcp_2.5.0_1794484852119_0.25341267800521616"},"_hasShrinkwrap":false}},"time":{"created":"2025-04-05T04:11:57.566Z","modified":"2026-11-12T12:00:52.865Z","0.1.0":"2025-04-05T04:11:57.827Z","0.1.1":"2025-04-07T18:53:27.488Z","0.1.2":"2025-04-07T21:15:32.372Z","0.1.3":"2025-04-11T15:28:46.460Z","2.0.0":"2026-10-26T23:33:45.439Z","2.1.0":"2026-10-27T07:53:47.822Z","2.2.0":"2026-10-30T09:08:06.442Z","2.3.0":"2026-10-30T09:25:52.480Z","2.4.0":"2026-11-02T17:17:28.858Z","2.5.0":"2026-11-12T12:00:52.246Z"},"bugs":{"url":"https://github.com/browsermcp/mcp/issues"},"author":{"name":"Browser MCP"},"license":"Apache-2.0","homepage":"https://browsermcp.io","repository":{"url":"git+https://github.com/BrowserMCP/mcp.git","type":"git","directory":"packages/mcp"},"description":"MCP server for browser automation using Browser MCP","maintainers":[{"name":"namuorg","email":"npm@namu.org"}],"readme":"# Browser MCP server (`@browsermcp/mcp`)\n\nThe MCP server AI apps run (`npx @browsermcp/mcp@latest`). It drives the user's Chrome through the Browser MCP extension, with one `browser` tool.\n\n## Quick start\n\nBrowser MCP lets AI apps such as Claude Code, Cursor and VS Code use your browser, logged in where you are, in tabs of their own. You need Chrome (or Edge or Brave) and Node.js 20 or later.\n\n1. Install the [Browser MCP extension](https://chromewebstore.google.com/detail/bjfgambnhccakkhmkepdoekmckoijdlc) and pin it to the toolbar.\n2. Add the server to your AI app, and restart the app. In Claude Code: `claude mcp add --scope user browsermcp -- npx @browsermcp/mcp@latest`. Most other apps, such as Cursor and Claude Desktop, take this (VS Code's format differs; see the docs below):\n\n   ```json\n   {\n     \"mcpServers\": {\n       \"browsermcp\": {\n         \"command\": \"npx\",\n         \"args\": [\"@browsermcp/mcp@latest\"]\n       }\n     }\n   }\n   ```\n\n3. Ask the agent to open a page. The first time, it tells you to click **Allow** in the extension's popup: check that the popup's six-digit code matches the agent's, click **Allow**, and ask the agent to try again.\n\nSteps for each AI app, and troubleshooting: [browsermcp.io/docs](https://browsermcp.io/docs). The rest of this README is for developing the server.\n\n## Architecture\n\n```\nAI app ──stdio──▶ thin process (dist/index.js, one per AI app)          src/thin/\n                    │ starts the daemon if needed; forwards tools/list and tools/call\n                    ▼ ws://127.0.0.1:<port>/client?token=…   (token from ~/.browsermcp/daemon.json)\n                 daemon (dist/daemon.js, one per user)                  src/daemon/\n                    ├─ command engine: the browser tool                 src/commands/, src/tools/\n                    │    └─ BrowserBackend (src/contracts.ts): public tab IDs   src/relay/backend.ts\n                    └─ a slot per browser (Chrome profile), up to 8     src/relay/browser-slot.ts\n                         ├─ Playwright connectOverCDP\n                         │        ▼ ws://127.0.0.1:<port>/cdp?token=…&browser=<slot id>\n                         ├─ CDP bridge: fakes Browser.* / Target.*      src/relay/bridge.ts\n                         └─ extension connection                        src/relay/extension-connection.ts\n                                  ▲ ws://127.0.0.1:<port>/extension\n                         MV3 service worker ── chrome.debugger (one per profile)\n```\n\n- **Ports:** the daemon binds the first free port of 9010, 9011 and 9012 (`RELAY_PORTS`), skipping ports other programs hold. A port counts as our daemon's (so a new daemon exits and the thin processes use it) only when `daemon.json` names its port and the pid its `/browsermcp/status` reports, and its token opens `/client`; another program answering `/status` as `browsermcp` is skipped like any other. Nothing of ours uses 9009, where 0.1.x servers kill whatever listens. `--port <n>` (on the thin process, passed to the daemon) uses one port, with `daemon-<n>.json` and `daemon-<n>.log`.\n- **`~/.browsermcp/`** (0700; `BROWSER_MCP_HOME` overrides it): `daemon.json` (port, pid, version, token; 0600), `identity.json` (the pairing key; 0600, kept across restarts; written to a temp file and hard-linked into place, so daemons starting at once agree on one key), `daemon.starting.json` (written by a thin process starting or replacing the daemon, with its version) and `daemon.log` (1 MB, one rotation).\n- **Relay** (`src/relay/server.ts`): loopback only, with a Host check against DNS rebinding. `GET /browsermcp/status` (CORS for `chrome-extension://`), `WS /extension` (Origin: the Chrome Web Store ID, the self-built extension's ID or `BROWSER_MCP_EXTENSION_IDS`, comma-separated, plus the IDs each thin process sends in `hello`, which the daemon allows while it runs, and the IDs in `~/.browsermcp/dev-extension-ids`, read when an unknown extension connects; `src/relay/extension-ids.ts`), `WS /cdp` and `WS /client` (token, no browser Origin) and `POST /shutdown` (token).\n- **Pairing:** the extension's `hello` carries a challenge; `welcome` carries the daemon's public key, a commitment to a fresh nonce for this connection, and its signature of the challenge, the commitment and the port the extension dialed (`pairingPayload()`, `src/daemon/identity.ts`), so a program on another port can't relay the challenge to the daemon. For a key it hasn't paired with, the extension sends a nonce of its own (`pairingNonce`), the daemon reveals its nonce (`pairingReveal`, `src/relay/extension-connection.ts`), and both compute the same six-digit code (`pairingCode()`; see \"Pairing\" in `@browsermcp/protocol` for why the order makes it safe). Until the user clicks **Allow**, tool calls answer \"Click Allow in the Browser MCP extension's popup. The code is 482 913\" (without the code for the moment before the extension's nonce arrives).\n- **The bridge** announces only claimed tabs as targets (`BrowserBackend.page()` claims; `release()` detaches). It holds `Runtime.enable` until the `Page.getFrameTree` reply is delivered, passes child sessions through, re-attaches after detaches other than `canceled_by_user`, `paused` and `not_allowed`, and counts domain enables per session so a raw `cdp` session can't disable Playwright's. The backend finds each tab's Page by target ID.\n- **Hidden tabs** (`src/commands/hidden-tabs.ts`, from `spikes/hidden-tabs/RESULTS.md`): agents' tabs are background tabs, which Chrome doesn't render. Playwright connects with `noDefaults: true`, so its overrides stay off the user's tabs, and the engine turns on `Emulation.setFocusEmulationEnabled` for each tab it claims. Before mouse and keyboard input and screenshots it checks `document.visibilityState`, turns emulation on again if needed, and otherwise fails: input sent to a hidden tab hangs and lands later, and its screenshots are blank.\n- **Reconnecting:** right after the daemon starts or a browser disconnects (a service worker restart), a call waits up to 10 s for it to come back (a call on another browser's tab doesn't wait), and sessions keep their tabs meanwhile.\n- **Several browsers** (`src/relay/backend.ts`, `browser-slot.ts`): the daemon connects up to `MAX_BROWSERS` (8) browsers (Chrome profiles) at once and refuses one more with `anotherBrowser`. Each gets a slot of its own: its extension connection, its CDP bridge (a bridge's state is keyed by Chrome's tab IDs, and browser-level CDP commands go through one of its tabs, so a bridge serves one browser) and its Playwright connection (`/cdp?browser=<slot id>`). A slot outlives its connection: a browser that reconnects lands in its old one, told apart by `hello.browserId` (a random ID the extension keeps per profile) or, from extensions that send none (2.2), by user agent and window IDs: such a connection takes the slot of the browser like it that left last, and its first paired `state` confirms that, or moves it to the slot whose windows it reports. A browser whose old connection is still open gets its slot back only when that one doesn't answer a ping; one that does (a copied profile with the same `browserId`) keeps it, and the newcomer is refused. The daemon remembers up to 16 browsers, forgetting the one away longest. Chrome's tab IDs mean something only within one browser (separate Chrome processes number theirs from 1), so the backend issues the IDs agents see: a tab keeps Chrome's ID unless another browser's tab has that number, when it gets a spare one above 100000, and keeps it across its browser's reconnects, unless that tab shows another URL when the browser is back than when it left: Chrome numbers tabs anew when it restarts, so the old ID is retired (it fails as a closed tab's) rather than name another tab. An ID of a browser that's away fails with \"<label> disconnected\" and never names another browser's tab. Each browser is named by the label the user gave it in the popup (`state.label`, sent only to a paired daemon), else `Chrome`, `Chrome 2`… by the daemon. Pairing, Stop, activity and releases are per browser: one waiting for **Allow** doesn't stop agents using another, and `unavailableReason()` speaks only when none is usable. New tabs open, per session, in the browser of the tab the session last selected or opened, or the one it chose with `browser use` since, else the usable browser whose window had focus last (`state.lastFocusedAt`), else the one that connected last; `tab new --browser <label|id>` opens one elsewhere. With one browser connected, agents see nothing of this: outputs and the tool's definition are the same, and `browser` isn't listed by `help`. With several, `tab list` names each tab's browser (and ends with a line about `browser list`), and errors about one browser start with its label.\n- **Timeouts:** requests to the extension 30 s (`cdp` 5 min, since Playwright times those itself), RPC between the thin process and the daemon 30 s, and `tools/call` 5 min in the daemon (the thin process waits 30 s more); the thin process waits 10 s for `welcome`.\n- **Versions:** a thin process newer than the daemon asks it to exit (`POST /shutdown`, answered once no call is in flight) and starts its own; an older one uses the newer daemon, and while `daemon.starting.json` says a newer one is starting (for 15 s), waits for it rather than start its own. The daemon exits 10 minutes after its last session leaves; thin processes start a new one on their next call.\n- **Files:** the daemon asks the thin process to read uploads and write screenshots, PDFs and downloads. Any path on the machine works, with the permissions of the user running the AI app: `~` is the home directory, and relative paths resolve against the first of the AI app's MCP roots (its working directory when the client has none). Nothing limits which files a page-injected agent could upload, or which files `screenshot --path`, `pdf` and `download` could overwrite, so treat pages you let agents browse as able to read any file the user can read and overwrite any file the user can write.\n\n## Development\n\n- `pnpm build` builds `dist/index.js` (the `bin`) and `dist/daemon.js`; `pnpm watch` rebuilds on changes.\n- Run by hand: `node dist/index.js --port 9333` in an MCP client (or the inspector below), with the extension's port set to 9333. `node dist/daemon.js --port 9333 --stderr` runs a daemon in the foreground. Use `BROWSER_MCP_HOME=$(mktemp -d)` to keep it apart from your real daemon.\n- A dev build of the extension has its own ID per checkout: put the ID on a line of `~/.browsermcp/dev-extension-ids` (`#` starts a comment; the daemon reads the file when an unknown extension connects, so nothing needs restarting), or set `BROWSER_MCP_EXTENSION_IDS=<id>` in the AI app's MCP config and reconnect the MCP server (the thin process sends it to a running daemon). When the daemon refuses an extension, tool calls name its ID and this variable. For a daemon you start by hand, set the variable on it.\n\n### Inspector\n\n- The client UI runs on port 9001 (the default of 5173 conflicts with the extension's Vite server)\n- The MCP proxy server runs on port 9002 (the default of 3000 conflicts with the `marketing` app)\n\n1. Run `pnpm build` or `pnpm watch` to build `dist/`\n2. Run `pnpm inspector` to start the inspector\n3. Navigate to `http://localhost:9001?proxyPort=9002` to open the inspector UI\n4. Click the `Connect` button to run `dist/index.js` and start the MCP server\n\n## Testing\n\n`pnpm test` (Vitest). Tests never use ports 9009–9012 or `~/.browsermcp`: they take random ports and a temp `BROWSER_MCP_HOME`, and stop only the daemons they started.\n\n- `src/relay/server.test.ts`, `bridge.test.ts`: the endpoints and checks, and the bridge with an in-memory extension and CDP client.\n- `src/relay/backend.test.ts`, `integration.test.ts`: real Playwright through the bridge, with real headless Chromium standing in for the extension (pairing, several browsers at once, iframes, release and re-claim, a raw CDP session, Stop and Cancel, disconnects).\n- `src/daemon/daemon.test.ts`, `src/thin/*.test.ts`: the daemon in-process and as real processes (started on demand, two thin processes at once, version replacement, idle exit, a killed daemon, ports held by other programs, relative file paths and MCP roots).\n- End to end, with the real extension: `pnpm --filter @browsermcp/extension smoke` (`@browsermcp/extension`'s `scripts/smoke-browser-control.ts`), which builds this package and runs `dist/index.js` over stdio.\n\nHelpers in `src/testing/` for other tests:\n\n- `FakeChromium.launch()` and `FakeExtension.connect({ port, chromium, pairing? })` (`fake-extension.ts`): headless Chromium driven over a raw CDP socket, speaking the extension's protocol (`attach`, `cdp` with child sessions, `createTab`, `groupTab`…; events, state, `tabOpened`), plus the user's actions: `openTab()`, `allow()`, `pause()`, `cancel()`, `assign()`, `disconnect()`. `verifyWelcome()` checks the daemon's signature with WebCrypto, against the port it dialed (`port`). With `pairing: \"pending\"` it exchanges nonces with the daemon and sets `code`, the code the popup would show (`pairingNonce: false` stays without one; `exchangePairingNonces()` does it later). `userAgent`, `windowId` and `browserId` tell fake browsers apart (launch a `FakeChromium` per browser for colliding tab IDs, as separate Chrome processes have), `label` and `setLabel()`/`focus()` send the popup's label and focus, `answering = false` makes it ignore pings and requests, like a stuck service worker, and `holdState()`/`releaseState()` hold back its `state` reports, like a slow one.\n- `startTestBackend()` (`test-backend.ts`): a relay and `RelayBackend` on a random port, a `BrowserBackend` for engine tests.\n- `startFixtureServer(pages)` (`fixture-server.ts`): test pages on `127.0.0.1` and, for cross-site iframes, `localhost`.\n- `createStubEngine` and the stub daemon (`stub-engine.ts`, `stub-daemon.ts`, built by `global-setup.ts` and passed to tests as `inject(\"stubDaemon\")`).\n\n## Releases\n\nBrowser MCP's maintainers release `@browsermcp/mcp` to npm. To run a build of your own instead, see \"Build it yourself\" in the repository's README.\n","readmeFilename":"README.md"}