npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

dev-peek-mcp

v1.1.1

Published

MCP Bridge Server for the Dev-Peek Chrome Extension

Readme

Dev Peek MCP Server

This package provides a Model Context Protocol (MCP) server that acts as a bridge between the Dev Peek Chrome Extension and AI tools. It allows AI assistants to inspect, edit, and understand the web page you are currently working on.

Features

  • Context Awareness: The AI can read your website's structure without you needing to copy-paste code.
  • Live Editing: AI tools can make changes to the DOM and styles in real-time.
  • Stable Element References: Elements are fingerprinted with a data-devpeek-id attribute, providing a stable way to reference elements across multiple operations.

Installation

To install the package globally from the local source, run the following command from the mcp-server directory:

npm install -g .

This will make the dev-peek-mcp and dev-peek-setup commands available in your system's PATH.

Usage

To start the MCP server, run the following command in your terminal:

dev-peek-mcp

This will start a WebSocket server on ws://localhost:8080. The Dev Peek extension will automatically connect to this server.

Troubleshooting

Port Conflict Errors

If you see an error like Port 8080 appears in use or your IDE reports that the server exited unexpectedly, it means you have more than one instance of the server trying to run at the same time.

Solution: The best practice is to let your IDE (e.g., VS Code) manage the server process.

  • Stop any manual dev-peek-mcp processes running in your terminal.
  • Rely on your IDE's MCP extension to automatically start and stop the server in the background.

If you prefer to run the server manually, you will need to disable the auto-start feature for this server in your IDE's settings.

MCP Protocol

The server exposes the following resources and tools:

Resources

  • page://dom: A simplified, semantic representation of the current DOM tree.
  • page://selected: The styles and details of the currently selected element in Dev Peek.

Tools

  • select_element: Select and highlight an element by CSS selector or devpeekId.
  • identify_element: Assign a persistent devpeekId to an element.
  • update_style: Update a CSS style property of an element.
  • update_text: Update the text content of an element.
  • scroll_to: Scroll an element into view.
  • undo: Undo the last change for an element.
  • get_element_attributes: Get all attributes of an element.
  • get_computed_style: Get the computed style of an element.

Development

To build the server, run:

npm run build

To run the setup script for configuring AI tools, run:

dev-peek-setup

This script will automatically detect and configure the following AI tools:

  • Claude Desktop: If the Claude Desktop application is found, the script will automatically update its configuration to use the Dev Peek MCP server.
  • Gemini CLI: If the gemini command is available, the script will run gemini mcp add to register the server.

If the script is unable to automatically configure a tool, it will provide manual setup instructions.