peoplesearch-mcp 0.0.0-stage → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 PeopleSearch.im
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,131 @@
1
- # Temporary Holding Version
1
+ # PeopleSearch.im MCP server
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Give your AI agent [PeopleSearch.im](https://peoplesearch.im/mcp?utm_source=github&utm_medium=readme&utm_campaign=mcp-repo):
4
+ search a global professional database in plain English, reveal full profiles, and fetch verified
5
+ professional (work) emails, plus email verification, reverse email lookup, LinkedIn lookups, and company
6
+ lookups. Searching is free; most lookups cost 1 credit and are refunded automatically when nothing is found.
7
+
8
+ Listed in the [Official MCP Registry](https://registry.modelcontextprotocol.io) as `im.peoplesearch/email-finder`.
9
+
10
+ ## Connect (remote server, recommended)
11
+
12
+ No install. The server runs at:
13
+
14
+ ```
15
+ https://peoplesearch.im/api/mcp
16
+ ```
17
+
18
+ Searching people and companies works without an account a few times a day. When your assistant needs a
19
+ tool that spends credits, it asks you to sign in and approve the connection (OAuth), with no API key to
20
+ copy. Your first search is free, then credit packs from $5, with no subscription.
21
+
22
+ **ChatGPT:** install the PeopleSearch.im app from ChatGPT's app directory, or add the URL above as a custom
23
+ connector (choose OAuth).
24
+
25
+ **Claude:** add the URL above as a custom connector (Settings > Connectors).
26
+
27
+ **Claude Code:**
28
+
29
+ ```bash
30
+ claude mcp add --transport http peoplesearch https://peoplesearch.im/api/mcp
31
+ ```
32
+
33
+ **Cursor** (`~/.cursor/mcp.json`):
34
+
35
+ ```json
36
+ {
37
+ "mcpServers": {
38
+ "peoplesearch": {
39
+ "url": "https://peoplesearch.im/api/mcp"
40
+ }
41
+ }
42
+ }
43
+ ```
44
+
45
+ **VS Code** (`.vscode/mcp.json`):
46
+
47
+ ```json
48
+ {
49
+ "servers": {
50
+ "peoplesearch": {
51
+ "type": "http",
52
+ "url": "https://peoplesearch.im/api/mcp"
53
+ }
54
+ }
55
+ }
56
+ ```
57
+
58
+ ### Prefer an API key? (Windsurf, scripts, clients without OAuth)
59
+
60
+ Create a key (`sk_sift_...`) on the
61
+ [developer page](https://peoplesearch.im/developers?utm_source=github&utm_medium=readme&utm_campaign=mcp-repo)
62
+ and send it as a Bearer header:
63
+
64
+ ```bash
65
+ claude mcp add --transport http peoplesearch https://peoplesearch.im/api/mcp \
66
+ --header "Authorization: Bearer sk_sift_..."
67
+ ```
68
+
69
+ ```json
70
+ {
71
+ "mcpServers": {
72
+ "peoplesearch": {
73
+ "serverUrl": "https://peoplesearch.im/api/mcp",
74
+ "headers": { "Authorization": "Bearer sk_sift_..." }
75
+ }
76
+ }
77
+ }
78
+ ```
79
+
80
+ ## Connect (local stdio bridge)
81
+
82
+ For clients that only speak stdio, this repository is a zero-dependency bridge (`index.mjs`, Node 18+). It
83
+ speaks MCP over stdio and forwards each tool call to the PeopleSearch.im REST API with your API key:
84
+
85
+ ```json
86
+ {
87
+ "mcpServers": {
88
+ "peoplesearch": {
89
+ "command": "npx",
90
+ "args": ["-y", "github:founden-bot/peoplesearch-mcp"],
91
+ "env": { "PEOPLESEARCH_API_KEY": "sk_sift_..." }
92
+ }
93
+ }
94
+ }
95
+ ```
96
+
97
+ Or clone the repository and run `node index.mjs` with `PEOPLESEARCH_API_KEY` set.
98
+ `PEOPLESEARCH_BASE_URL` optionally overrides the API base (default `https://peoplesearch.im`).
99
+
100
+ ## Tools
101
+
102
+ | Tool | What it does | Cost |
103
+ | --- | --- | --- |
104
+ | `people_search` | Search people in plain English or with exact filters (masked previews and the true total) | free |
105
+ | `company_search` | Search companies by description, website or name | free |
106
+ | `check_credits` | Your credit balance | free |
107
+ | `reveal_profile` | Unlock one person from a search result | 1 credit (+1 for the email) |
108
+ | `find_people` | Search and unlock a batch of people in one charge | 1 credit per person unlocked |
109
+ | `fetch_email` | Verified work email for an unlocked person | 1 credit (refunded if none) |
110
+ | `find_work_email` | A named person's verified work email from their name and company | 2 credits (refunded if none) |
111
+ | `find_email_from_linkedin` | The verified work email behind a LinkedIn profile URL | 3 credits (refunded if none) |
112
+ | `verify_email` | Check whether an address exists and is safe to send to | 1 credit (refunded if no verdict) |
113
+ | `find_company_emails` | Role-based addresses (sales@, support@...) for a company | 2 credits (refunded if none) |
114
+ | `find_linkedin_profile` | A person's LinkedIn URL from their name | 2 credits (refunded if no match) |
115
+ | `lookup_linkedin_profile` | Structured data from a LinkedIn profile URL | 2 credits (refunded if none) |
116
+ | `lookup_company` | Firmographics from a LinkedIn company URL | 1 credit (refunded if none) |
117
+ | `reverse_email_lookup` | The person behind a professional email | 13 credits (refunded if no match) |
118
+
119
+ Data comes from Icypeas, a B2B people-data provider. Emails are professional (work) addresses looked up
120
+ live, not personal ones. A lookup can come back empty, and then the credit is refunded.
121
+
122
+ ## Links
123
+
124
+ - MCP setup guide: <https://peoplesearch.im/mcp?utm_source=github&utm_medium=readme&utm_campaign=mcp-repo>
125
+ - Developer docs and API keys: <https://peoplesearch.im/developers?utm_source=github&utm_medium=readme&utm_campaign=mcp-repo>
126
+ - Pricing: <https://peoplesearch.im/pricing?utm_source=github&utm_medium=readme&utm_campaign=mcp-repo>
127
+ - OpenAPI spec: <https://peoplesearch.im/openapi.json>
128
+
129
+ ## License
130
+
131
+ [MIT](LICENSE)
package/index.mjs ADDED
@@ -0,0 +1,169 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * peoplesearch-mcp: a local (stdio) Model Context Protocol server for PeopleSearch.im.
4
+ *
5
+ * A zero-dependency bridge: it speaks MCP over stdio to your client (Claude Desktop, Cursor, …) and
6
+ * forwards each tool call to the PeopleSearch.im REST API using your API key, so an agent can search
7
+ * people and companies, reveal profiles, and fetch verified professional emails, billed to your credits.
8
+ *
9
+ * There is nothing to build: `npx peoplesearch-mcp` runs this file directly on Node 18+ (global fetch).
10
+ *
11
+ * Config:
12
+ * PEOPLESEARCH_API_KEY required. Your key (sk_sift_…) from https://peoplesearch.im/developers
13
+ * PEOPLESEARCH_BASE_URL optional. Defaults to https://peoplesearch.im
14
+ *
15
+ * Most users of a REMOTE MCP client should instead point straight at https://peoplesearch.im/api/mcp
16
+ * (see /developers). This package exists for stdio-only clients and for the Official MCP Registry.
17
+ */
18
+
19
+ import { createInterface } from "node:readline";
20
+
21
+ const BASE = (process.env.PEOPLESEARCH_BASE_URL || "https://peoplesearch.im").replace(/\/+$/, "");
22
+ const API_KEY = process.env.PEOPLESEARCH_API_KEY || "";
23
+ const PROTOCOL_VERSIONS = ["2025-06-18", "2025-03-26", "2024-11-05"];
24
+
25
+ const S = (props, required, additional = false) => ({ type: "object", properties: props, required, additionalProperties: additional });
26
+ const str = (description) => ({ type: "string", description });
27
+
28
+ /** Each tool maps its MCP arguments to a PeopleSearch.im REST call. */
29
+ const TOOLS = [
30
+ { name: "people_search", title: "Search people",
31
+ description: "Search a global professional database in plain English and get masked previews plus the true total. Free; spends no credits. Each result has a `token` for reveal_profile.",
32
+ inputSchema: S({ query: str("Who you are looking for, in plain English."), limit: { type: "integer", minimum: 1, maximum: 25, description: "1-25, default 10." } }, ["query"]),
33
+ rest: (a) => ({ method: "POST", path: "/api/v1/search", body: { query: a.query, limit: a.limit } }) },
34
+ { name: "reveal_profile", title: "Reveal a person",
35
+ description: "Unlock one person from a people_search result by `token`. 1 credit. Set include_email to also fetch their verified work email (a second credit, refunded if none). Idempotent.",
36
+ inputSchema: S({ token: str("A person's token from people_search."), include_email: { type: "boolean", description: "Also fetch the verified work email. Default false." } }, ["token"]),
37
+ rest: (a) => ({ method: "POST", path: "/api/v1/reveal", body: { token: a.token, withEmail: a.include_email === true } }) },
38
+ { name: "find_people", title: "Find & unlock a batch of people",
39
+ description: "Re-run a search and unlock up to `count` full profiles in one atomic charge (1 credit each; already-owned are free). Returns each person's id for fetch_email. Can spend up to `count` credits.",
40
+ inputSchema: S({ query: str("Who you want, in plain English."), count: { type: "integer", minimum: 1, maximum: 100, description: "1-100, default 25." } }, ["query"]),
41
+ rest: (a) => ({ method: "POST", path: "/api/v1/deliver", body: { query: a.query, count: a.count || 25 } }) },
42
+ { name: "fetch_email", title: "Fetch a verified work email",
43
+ description: "Look up the verified professional email for a person id from find_people/reveal_profile. 1 credit, refunded if none is found. May return emailStatus 'searching'; call again (no extra charge) to collect it.",
44
+ inputSchema: S({ profile_id: str("A person's id from find_people or reveal_profile.") }, ["profile_id"]),
45
+ rest: (a) => ({ method: "POST", path: "/api/v1/email", body: { id: a.profile_id } }) },
46
+ { name: "find_work_email", title: "Find a person's work email",
47
+ description: "Find and verify the professional (work) email of a person you can name: first name, last name and their company (its domain is most exact). 2 credits, refunded if no email is found.",
48
+ inputSchema: S({ first_name: str("First name."), last_name: str("Last name."), domain_or_company: str("The company's domain (most exact, e.g. stripe.com) or its name.") }, ["first_name", "last_name", "domain_or_company"]),
49
+ rest: (a) => ({ method: "POST", path: "/api/v1/tools", body: { tool: "work-email-finder", input: { firstname: a.first_name, lastname: a.last_name, domainOrCompany: a.domain_or_company } } }) },
50
+ { name: "verify_email", title: "Verify an email address",
51
+ description: "Check whether an email exists and is safe to send to, without sending. 1 credit, refunded if no verdict.",
52
+ inputSchema: S({ email: str("The email to verify.") }, ["email"]),
53
+ rest: (a) => ({ method: "POST", path: "/api/v1/tools", body: { tool: "email-verifier", input: { email: a.email } } }) },
54
+ { name: "find_company_emails", title: "Find a company's emails",
55
+ description: "Return role-based email addresses for a company domain or name. 2 credits, refunded if none found.",
56
+ inputSchema: S({ domain_or_company: str("A company domain (preferred) or name.") }, ["domain_or_company"]),
57
+ rest: (a) => ({ method: "POST", path: "/api/v1/tools", body: { tool: "email-finder", input: { domainOrCompany: a.domain_or_company } } }) },
58
+ { name: "reverse_email_lookup", title: "Reverse email lookup",
59
+ description: "Turn a professional email into the person behind it and their LinkedIn profile. 13 credits (the most expensive lookup), refunded if no match.",
60
+ inputSchema: S({ email: str("The email to identify.") }, ["email"]),
61
+ rest: (a) => ({ method: "POST", path: "/api/v1/tools", body: { tool: "reverse-email-lookup", input: { email: a.email } } }) },
62
+ { name: "find_linkedin_profile", title: "Find a LinkedIn profile",
63
+ description: "Find a person's LinkedIn URL from their name; add company/domain to disambiguate. 2 credits, refunded if no confident match.",
64
+ inputSchema: S({ first_name: str("First name."), last_name: str("Last name."), company_or_domain: str("Optional company name or domain.") }, ["first_name", "last_name"]),
65
+ rest: (a) => ({ method: "POST", path: "/api/v1/tools", body: { tool: "linkedin-profile-finder", input: { firstname: a.first_name, lastname: a.last_name, companyOrDomain: a.company_or_domain || "" } } }) },
66
+ { name: "lookup_linkedin_profile", title: "Look up a LinkedIn profile",
67
+ description: "Turn a LinkedIn profile URL into structured data. 2 credits, refunded if it cannot be retrieved.",
68
+ inputSchema: S({ linkedin_url: str("A LinkedIn profile URL.") }, ["linkedin_url"]),
69
+ rest: (a) => ({ method: "POST", path: "/api/v1/tools", body: { tool: "linkedin-profile-lookup", input: { url: a.linkedin_url } } }) },
70
+ { name: "find_email_from_linkedin", title: "Find the email behind a LinkedIn profile",
71
+ description: "Given a LinkedIn profile URL, return that person's professional email, verified live, with their current role and company. 3 credits, refunded if no email is found.",
72
+ inputSchema: S({ linkedin_url: str("A LinkedIn profile URL (linkedin.com/in/...).") }, ["linkedin_url"]),
73
+ rest: (a) => ({ method: "POST", path: "/api/v1/tools", body: { tool: "linkedin-email-finder", input: { url: a.linkedin_url } } }) },
74
+ { name: "lookup_company", title: "Look up a company",
75
+ description: "Turn a LinkedIn company URL into firmographic data. 1 credit, refunded if it cannot be retrieved.",
76
+ inputSchema: S({ linkedin_company_url: str("A LinkedIn company URL.") }, ["linkedin_company_url"]),
77
+ rest: (a) => ({ method: "POST", path: "/api/v1/tools", body: { tool: "company-lookup", input: { url: a.linkedin_company_url } } }) },
78
+ { name: "company_search", title: "Search companies",
79
+ description: "Search a global company database in plain English. Free; spends no credits.",
80
+ inputSchema: S({ query: str("The companies you want, in plain English.") }, ["query"]),
81
+ rest: (a) => ({ method: "POST", path: "/api/v1/tools", body: { tool: "company-search", input: { query: a.query } } }) },
82
+ { name: "check_credits", title: "Check credit balance",
83
+ description: "Return the current credit balance for your API key. Free and read-only.",
84
+ inputSchema: S({}, []),
85
+ rest: () => ({ method: "GET", path: "/api/v1/credits" }) },
86
+ ];
87
+ const TOOL_BY_NAME = new Map(TOOLS.map((t) => [t.name, t]));
88
+
89
+ function send(msg) {
90
+ process.stdout.write(JSON.stringify(msg) + "\n");
91
+ }
92
+ function ok(id, result) { return { jsonrpc: "2.0", id, result }; }
93
+ function rpcError(id, code, message) { return { jsonrpc: "2.0", id: id ?? null, error: { code, message } }; }
94
+
95
+ async function callRest(tool, args) {
96
+ if (!API_KEY) {
97
+ return { content: [{ type: "text", text: "Set PEOPLESEARCH_API_KEY to your key from https://peoplesearch.im/developers." }], isError: true };
98
+ }
99
+ const { method, path, body } = tool.rest(args || {});
100
+ let res, data;
101
+ try {
102
+ res = await fetch(BASE + path, {
103
+ method,
104
+ headers: { Authorization: `Bearer ${API_KEY}`, "Content-Type": "application/json" },
105
+ body: method === "GET" ? undefined : JSON.stringify(body || {}),
106
+ });
107
+ data = await res.json();
108
+ } catch (e) {
109
+ return { content: [{ type: "text", text: `Request to PeopleSearch.im failed: ${e && e.message ? e.message : "network error"}.` }], isError: true };
110
+ }
111
+ const failed = !res.ok || (data && data.ok === false);
112
+ const lead = failed
113
+ ? (res.status === 401 ? "Unauthorized: check PEOPLESEARCH_API_KEY."
114
+ : res.status === 402 ? "Out of credits: top up at https://peoplesearch.im/pricing."
115
+ : (data && data.message) || `Request failed (HTTP ${res.status}).`)
116
+ : `${tool.title} result:`;
117
+ return {
118
+ content: [{ type: "text", text: `${lead}\n${JSON.stringify(data, null, 2)}` }],
119
+ structuredContent: data && typeof data === "object" ? data : undefined,
120
+ isError: failed,
121
+ };
122
+ }
123
+
124
+ async function handle(msg) {
125
+ if (!msg || msg.jsonrpc !== "2.0" || typeof msg.method !== "string") return rpcError(msg && msg.id, -32600, "Invalid Request");
126
+ const isNotification = msg.method.startsWith("notifications/") || !("id" in msg) || msg.id === undefined;
127
+ if (isNotification) return null;
128
+ const { id, method, params } = msg;
129
+ switch (method) {
130
+ case "initialize": {
131
+ const requested = params && params.protocolVersion;
132
+ const version = PROTOCOL_VERSIONS.includes(requested) ? requested : PROTOCOL_VERSIONS[0];
133
+ return ok(id, {
134
+ protocolVersion: version,
135
+ capabilities: { tools: { listChanged: false } },
136
+ serverInfo: { name: "peoplesearch.im", title: "PeopleSearch.im", version: "1.3.0" },
137
+ instructions: "PeopleSearch.im people-data tools. Searching is free; reveals and lookups cost credits (most 1, refunded when nothing is found). Set PEOPLESEARCH_API_KEY from https://peoplesearch.im/developers.",
138
+ });
139
+ }
140
+ case "ping": return ok(id, {});
141
+ case "tools/list":
142
+ return ok(id, { tools: TOOLS.map((t) => ({ name: t.name, title: t.title, description: t.description, inputSchema: t.inputSchema })) });
143
+ case "tools/call": {
144
+ const name = params && params.name;
145
+ const tool = TOOL_BY_NAME.get(name);
146
+ if (!tool) return rpcError(id, -32602, `Unknown tool: ${name || "(none)"}`);
147
+ return ok(id, await callRest(tool, params && params.arguments));
148
+ }
149
+ case "resources/list": return ok(id, { resources: [] });
150
+ case "prompts/list": return ok(id, { prompts: [] });
151
+ default: return rpcError(id, -32601, `Method not found: ${method}`);
152
+ }
153
+ }
154
+
155
+ const rl = createInterface({ input: process.stdin });
156
+ rl.on("line", async (line) => {
157
+ const trimmed = line.trim();
158
+ if (!trimmed) return;
159
+ let msg;
160
+ try { msg = JSON.parse(trimmed); } catch { return send(rpcError(null, -32700, "Parse error")); }
161
+ try {
162
+ const res = await handle(msg);
163
+ if (res) send(res);
164
+ } catch (e) {
165
+ send(rpcError(msg && msg.id, -32603, `Internal error: ${e && e.message ? e.message : "unknown"}`));
166
+ }
167
+ });
168
+
169
+ process.stderr.write(`peoplesearch-mcp ready (base ${BASE}${API_KEY ? "" : ", no PEOPLESEARCH_API_KEY set"})\n`);
package/package.json CHANGED
@@ -1,6 +1,42 @@
1
1
  {
2
2
  "name": "peoplesearch-mcp",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "1.3.0",
4
+ "description": "MCP server for PeopleSearch.im: search people and companies, reveal profiles, and fetch verified professional emails from your AI agent.",
5
+ "mcpName": "im.peoplesearch/email-finder",
6
+ "type": "module",
7
+ "bin": {
8
+ "peoplesearch-mcp": "index.mjs"
9
+ },
10
+ "files": [
11
+ "index.mjs",
12
+ "server.json",
13
+ "README.md",
14
+ "LICENSE"
15
+ ],
16
+ "engines": {
17
+ "node": ">=18"
18
+ },
19
+ "keywords": [
20
+ "mcp",
21
+ "model-context-protocol",
22
+ "people-search",
23
+ "email-finder",
24
+ "email-verification",
25
+ "lead-generation",
26
+ "b2b-data",
27
+ "ai-agent",
28
+ "claude",
29
+ "cursor",
30
+ "linkedin"
31
+ ],
32
+ "homepage": "https://peoplesearch.im/mcp",
33
+ "repository": {
34
+ "type": "git",
35
+ "url": "git+https://github.com/founden-bot/peoplesearch-mcp.git"
36
+ },
37
+ "bugs": {
38
+ "url": "https://github.com/founden-bot/peoplesearch-mcp/issues"
39
+ },
40
+ "license": "MIT",
41
+ "dependencies": {}
42
+ }
package/server.json ADDED
@@ -0,0 +1,44 @@
1
+ {
2
+ "$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
3
+ "name": "im.peoplesearch/email-finder",
4
+ "title": "PeopleSearch.im",
5
+ "description": "People search, LinkedIn lookup and verified work emails for AI agents. First search needs no login.",
6
+ "version": "1.3.0",
7
+ "websiteUrl": "https://peoplesearch.im/mcp",
8
+ "remotes": [
9
+ {
10
+ "type": "streamable-http",
11
+ "url": "https://peoplesearch.im/api/mcp",
12
+ "headers": [
13
+ {
14
+ "name": "Authorization",
15
+ "description": "Optional: your PeopleSearch.im API key (sk_sift_...) from https://peoplesearch.im/developers. Leave empty: searches work without an account a few times a day, and other tools sign in with OAuth.",
16
+ "isRequired": false,
17
+ "isSecret": true
18
+ }
19
+ ]
20
+ }
21
+ ],
22
+ "repository": {
23
+ "url": "https://github.com/founden-bot/peoplesearch-mcp",
24
+ "source": "github"
25
+ },
26
+ "packages": [
27
+ {
28
+ "registryType": "npm",
29
+ "identifier": "peoplesearch-mcp",
30
+ "version": "1.3.0",
31
+ "transport": {
32
+ "type": "stdio"
33
+ },
34
+ "environmentVariables": [
35
+ {
36
+ "name": "PEOPLESEARCH_API_KEY",
37
+ "description": "Your PeopleSearch.im API key (sk_sift_...) from https://peoplesearch.im/developers",
38
+ "isRequired": true,
39
+ "isSecret": true
40
+ }
41
+ ]
42
+ }
43
+ ]
44
+ }