A Model Context Protocol server providing tools to analyze network traffic for a given URL using Playwright.
Project description
Network Call Analyzer MCP Server
A Model Context Protocol server that analyzes network traffic for a given URL using Playwright. This server enables LLMs to understand the resources loaded by a webpage.
Available Tools
analyze_network- Analyzes network traffic for a URL using Playwright.url(string, required): URL to analyze.filters(string, optional): Comma-separated list of file extensions or content types to filter out (e.g., css,png,woff).
Prompts
- analyze_network
- Analyze network traffic for a URL.
- Arguments:
url(string, required): URL to analyze.
Installation
Requires Node.js and Playwright to be installed.
- Install Playwright browsers:
playwright install --with-deps chromium # Or: python -m playwright install --with-deps chromium
Using uv (recommended)
When using uv no specific installation is needed. We will
use uvx to directly run network-call-analyzer.
Using PIP
Alternatively you can install network-call-analyzer via pip:
uv pip install .
After installation, you can run it as a script using:
python -m network_call_analyzer_mcp
Configuration
Configure for Claude.app
Add to your Claude settings:
Using uvx
"mcpServers": {
"network_analyzer": {
"command": "uvx",
"args": ["network-call-analyzer"]
}
}
Using docker
"mcpServers": {
"network_analyzer": {
"command": "docker",
"args": ["run", "-i", "--rm", "your-docker-image-name"] # TODO: Update docker image name
}
}
Using pip installation
"mcpServers": {
"network_analyzer": {
"command": "python",
"args": ["-m", "network_call_analyzer_mcp"]
}
}
Debugging
You can use the MCP inspector to debug the server. For uvx installations:
npx @modelcontextprotocol/inspector uvx network-call-analyzer
Or if you've installed the package in a specific directory or are developing on it:
cd path/to/servers/src/network_call_analyzer # Adjust path if needed
npx @modelcontextprotocol/inspector uv run network-call-analyzer
Contributing
We encourage contributions to help expand and improve network-call-analyzer. Whether you want to add new tools, enhance existing functionality, or improve documentation, your input is valuable.
For examples of other MCP servers and implementation patterns, see: https://github.com/modelcontextprotocol/servers
Pull requests are not welcome! This is meant to be a throw away package that it shall work as such
License
network-call-analyzer is licensed under the Better than MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the Better than MIT License. For more details, please see the LICENSE file in the project repository.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file network_call_analyzer-0.1.0.tar.gz.
File metadata
- Download URL: network_call_analyzer-0.1.0.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d6ecc87fb01b9fb7ea63270554a6744476bff89b161c6094c18d5272b41f43de
|
|
| MD5 |
7323b0bbb4155809288d9e25bf900851
|
|
| BLAKE2b-256 |
0a9f526067122f6b04ada75320994168904b9d49b421fb608fbbfefafe1615a0
|
File details
Details for the file network_call_analyzer-0.1.0-py3-none-any.whl.
File metadata
- Download URL: network_call_analyzer-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c9e2a6f3ebfe036b02b0c1d210d627b2585ffe553190f09d029af2ea3992c9ec
|
|
| MD5 |
6f680711f8399eaf86490d06d318e969
|
|
| BLAKE2b-256 |
4fccb51f724581b6eaab180385f8d9f067daaa2895cba6d894278e5988380f75
|