LinkedIn Prospecting CSV Manager
Manages LinkedIn prospecting CSV files with deduplication and search, reducing LLM token usage by offloading file operations.
README
LinkedIn Prospecting CSV Manager (MCP Server)
A high-performance, token-efficient Model Context Protocol (MCP) server designed for managing LinkedIn prospecting data in local CSV files. Built with Python and pandas.
Why This Project?
Managing large CSV files directly within an LLM (like Claude or ChatGPT) is inefficient and error-prone:
- Token Drain: Reading a 1000-line CSV can consume ~30,000 tokens per operation.
- Data Corruption: Manual file writing by LLMs often leads to escaping issues or column mismatches.
- Scalability: LLMs struggle with O(n) deduplication and full-file rewrites.
This MCP server reduces token usage by 60x+ by offloading CSV logic to your local machine.
๐ ๏ธ Features (V2)
- Standardized Golden Schema: Enforces a consistent set of columns across all your prospecting campaigns.
- "Auto-Repair" Header Normalization: Automatically renames legacy or inconsistent headers (e.g.,
v2 Score->match_score) to match the Golden Schema. - Atomic Writes: Uses temporary-file-and-replace patterns to ensure zero data corruption during file updates.
- Efficient Appending: Add new profiles with automatic deduplication based on
linkedin_url. - Multi-Value Filtering: Query profiles by Score, Company, or multiple Locations (e.g.,
["USA", "Canada"]). - Full-Text Search: Case-insensitive search across all text fields.
- Absolute Path Enforcement: Prevents "ghost files" by resolving all paths reliably.
The Golden Schema
Every CSV processed by the server is automatically standardized to:
full_namelinkedin_url(Deduplication Primary Key)headlinecompanycompany_sizelocationmatch_scorematch_reasoncurrent_role_mentionfound_dateicp_source
๐ฆ Installation
Prerequisites
- Python 3.10+
uv(recommended for dependency management)
Local Setup
- Clone this repository:
git clone https://github.com/denis911/antigravity-mcp-csv-add-deduplicate.git cd antigravity-mcp-csv-add-deduplicate - Install dependencies:
uv sync
Claude Desktop Integration
Add the following to your Claude Desktop configuration file:
- Windows:
%APPDATA%\Claude\claude_desktop_config.json
[!IMPORTANT] On Windows, we recommend using the
python -msyntax below to bypass system security policies (like App Control Policy 4551) that might block the defaultuvexecutable shims.
{
"mcpServers": {
"linkedin-prospecting-csv": {
"command": "uv",
"args": [
"--directory",
"C:\\path\\to\\your\\repo\\antigravity-mcp-csv-add-deduplicate",
"run",
"python",
"-m",
"linkedin_prospecting_csv.server"
]
}
}
}
๐งช Testing
Automated Testing
We use pytest with real-world data from the TESTS directory:
uv run pytest TESTS/test_csv_ops.py
๐ ๏ธ Available Tools
| Tool | Purpose |
|---|---|
create_new_csv |
Initialize a fresh CSV with Golden Schema headers |
append_profiles_to_csv |
Add new profiles + Auto-Repair + Deduplicate |
filter_profiles |
Query profiles by criteria (multi-value support) |
get_csv_stats |
Summary statistics & breakdowns (Auto-Repair on load) |
export_segment |
Save filtered results to new Golden Schema CSV |
search_profiles |
Full-text search across standardized columns |
deduplicate_csv |
Manual maintenance using standardized URL column |
๐ Security & Privacy
This server runs locally on your PC. Your CSV data never leaves your environment; only the specific results of your queries (filtered rows or stats) are sent to the LLM.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.