Primp MCP Server
An MCP server for the Primp HTTP client, enabling browser impersonation for requests and file uploads.
Primp MCP Server
A Model Context Protocol (MCP) server that provides access to the primp HTTP client library with browser impersonation capabilities.
Features
- Browser Impersonation: Impersonate various browsers (Chrome, Firefox, Safari, Edge) and operating systems
- HTTP Methods: Support for GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS
- Authentication: Basic auth and Bearer token support
- Proxy Support: HTTP/HTTPS proxy support
- File Uploads: Multipart form data file uploads
- Response Formats: Return responses as text, JSON, markdown, plain text, or rich text
- Advanced Options: Configurable timeouts, redirect handling, SSL verification
Installation
pip install -e .
Usage
The server provides two main tools:
1. primp_request
Make HTTP requests with browser impersonation (note, these instructions are for the LLM):
# Example usage in MCP client
{
"name": "primp_request",
"arguments": {
"url": "https://httpbin.org/get",
"method": "GET",
"impersonate": "chrome_131",
"impersonate_os": "windows",
"headers": {
"User-Agent": "My-App/1.0"
},
"return_format": "json"
}
}
2. primp_upload
Upload files using multipart form data:
# Example usage in MCP client
{
"name": "primp_upload",
"arguments": {
"url": "https://httpbin.org/post",
"files": [
{
"name": "file",
"filename": "example.txt",
"content": "SGVsbG8gV29ybGQ=", # base64 encoded
"content_type": "text/plain"
}
],
"data": {
"description": "Test upload"
}
}
}
Configuration
Add to your MCP settings:
{
"mcpServers": {
"primp": {
"command": "primp-mcp"
}
}
}
Supported Browsers
- Chrome (versions 99-131)
- Firefox (versions 99-133)
- Safari (versions 12-18, including iPad/iPhone)
- Edge (versions 99-131)
- OkHttp (versions 3.14.9-5.0.0)
Supported Operating Systems
- Windows
- macOS
- Linux
- Android
- iOS
License
MIT
Related Servers
Apify RAG Web Browser
Allows AI agents to interact with the web and extract information from web pages using the Apify API.
Outscraper
Access Outscraper's data extraction services for business intelligence, location data, reviews, and contact information from various online platforms.
JinaAI Reader
Extracts web content using the Jina.ai Reader API.
Crew Risk
A crawler compliance risk assessment system via a simple API.
Web Fetch
Fetches and transforms web content, including JavaScript-rendered pages and media files, into various formats.
Dumpling AI MCP Server
Data scraping, conversion, and extraction tools from Dumpling AI.
Playwright Server
A server providing Playwright tools for browser automation and web scraping.
Fetch
Fetch web content in various formats like HTML, JSON, plain text, and Markdown.
Markdown Downloader
Download webpages as markdown files using the r.jina.ai service, with configurable directories and persistent settings.
MCP Chrome Integration
Control the Chrome browser for web automation using an AI model. Requires the MCP Chrome extension.