Skip to main content
Glama
new-village

eight-mcp-community

by new-village

eight-mcp-community

Codacy Badge

Unofficial Python client and stdio MCP server for Eight person-search workflows.

WARNING

This project is unofficial and not affiliated with Eight or Sansan. It uses private/internal web endpoints that can change without notice. Keep cookies, credentials, and raw contact data out of GitHub, logs, issues, prompts, and public reports.

Design

This package follows the same idea as note-mcp-community, but the core is Python:

  • PyPI/project name: eight-mcp-community

  • Python import package: eight

  • CLI commands: eight-mcp-community and eight-mcp

  • MCP server: stdio, suitable for local/private agent use

The core client is reusable without an LLM:

from eight import EightClient

client = EightClient.from_default_config()
result = client.search_person("鈴木太郎 東京商事")
print(result.to_safe_dict())

The MCP server is a thin wrapper over the same EightClient.

Related MCP server: Prospeo MCP Server

Install / run

Local development:

uv sync --dev
uv run eight-mcp-community --help
uv run eight-mcp-community serve

Run directly without installing permanently:

uvx eight-mcp-community serve

If Eight returns Cloudflare-style 403 responses with valid cookies, use the optional curl_cffi transport. It impersonates Chrome for the normal CLI/MCP path and does not require Playwright:

uvx --from 'eight-mcp-community[cloudflare]' eight-mcp-community serve

If you install with python -m pip install --user eight-mcp-community, the command may be placed under ~/.local/bin, which is not always on PATH. Either add that directory to PATH, use the absolute path, or run the module form:

python -m eight serve
~/.local/bin/eight-mcp-community serve

MCP client configuration:

{
  "mcpServers": {
    "eight": {
      "command": "uvx",
      "args": ["eight-mcp-community", "serve"]
    }
  }
}

Codex MCP examples:

# PATH-based
codex mcp add eight -- eight-mcp-community serve

# pip --user / absolute-path style
codex mcp add eight -- /Users/you/.local/bin/eight-mcp-community serve

# module form, useful when the command is not on PATH
codex mcp add eight -- python3 -m eight serve

# Cloudflare-resistant transport via uvx
codex mcp add eight -- uvx --from 'eight-mcp-community[cloudflare]' eight-mcp-community serve

After package upgrades, optional dependency changes, authentication changes, or MCP configuration edits, restart Codex / your MCP client or otherwise restart the MCP server process. Already-running MCP servers keep using the old Python process.

Recommended post-install message for agents:

Eight MCP registration is installed. Authentication is intentionally simple:
1. Check current state: /Users/you/.local/bin/eight-mcp-community auth-status
2. If no cookie is configured, log in with Playwright. Recommended install for Eight login reliability: python -m pip install --user 'eight-mcp-community[browser,cloudflare]' && python -m playwright install chromium
3. If you already have a trusted Cookie header, save it directly: /Users/you/.local/bin/eight-mcp-community set-cookie '<COOKIE_HEADER>'
If a known-good cookie returns 403, use/install eight-mcp-community[cloudflare]. Restart Codex or the MCP client after package/auth/config changes.

Local development MCP config:

{
  "mcpServers": {
    "eight": {
      "command": "uv",
      "args": [
        "--directory",
        "/path/to/eight-mcp-community",
        "run",
        "eight-mcp-community",
        "serve"
      ]
    }
  }
}

Authentication

The authentication surface is intentionally small:

  1. auth-status checks whether a Cookie header is configured and whether it can currently access Eight.

  2. auth-login uses Playwright for an interactive browser login, captures 8card.net cookies, and saves them.

  3. set-cookie saves a trusted Cookie header supplied from outside the MCP flow.

Unless you provide a Cookie header via set-cookie or EIGHT_COOKIE, logging in requires Playwright. For Eight, installing both browser and cloudflare extras is recommended because the final cookie verification may need Chrome-like HTTP transport:

python -m pip install --user 'eight-mcp-community[browser,cloudflare]'
python -m playwright install chromium
~/.local/bin/eight-mcp-community auth-login

The MCP eight_auth_login tool runs the CLI login flow in a subprocess so Playwright does not collide with the MCP server's asyncio loop.

If Playwright's browser binary is missing, install it once on the same machine/user account:

python -m playwright install chromium

Create or overwrite the config file from a trusted Cookie header:

~/.local/bin/eight-mcp-community set-cookie '<COOKIE_HEADER>'
~/.local/bin/eight-mcp-community auth-status

Supported credential lookup order:

  1. EIGHT_COOKIE — externally supplied Cookie header

  2. EIGHT_MCP_COMMUNITY_CONFIG — path to config JSON with a cookie field

  3. Default config file: ~/.config/eight-mcp-community/config.json

If auth-login times out after the browser reached /myhome, the cookie was probably captured but the verification HTTP request failed. The timeout message includes the last non-secret diagnostic (reason, HTTP status, final URL, and Cloudflare-like signal). Use the [cloudflare] extra and restart the MCP client:

python -m pip install --user 'eight-mcp-community[cloudflare]'

CLI

eight-mcp-community auth-status
eight-mcp-community auth-login
eight-mcp-community set-cookie 'Cookie header'
eight-mcp-community search '鈴木'
eight-mcp-community search '鈴木' --source all
eight-mcp-community fetch-person '<ID_FROM_SEARCH>'
eight-mcp-community serve

All command output is JSON except --help.

MCP tools

Authentication tools:

  • eight_auth_status — check whether auth is configured and whether the current Cookie can access Eight

  • eight_auth_login — open a Playwright browser login flow, capture cookies, and save them through eight_set_cookie

  • eight_set_cookie — store a trusted Cookie header in the local MCP config file

Search tools:

  • eight_search_person — search people and return minimal result fields plus fetchable ids. By default it searches only registered/exchanged cards. Set source: "all" to also search public Eight network results. Public network people are returned in network; public network company hits are returned separately in network_companies.

  • eight_fetch_person — fetch detailed fields for an id returned by eight_search_person. Registered-card ids can include contact fields such as email and phone numbers; public-network ids return public profile-style fields when available.

Search results are intentionally minimal and LLM-safe: id, source, name, company, department, title, updated date, confidence/source bucket, and when available matched_fields / match_excerpt so users can understand why a result matched. Raw HTML, raw JSON, cookies, tokens, email addresses, phone numbers, and bulk exports are not returned by search. Use eight_fetch_person only when detailed contact/profile fields are actually needed.

Privacy and safety

  • Do not use this project for bulk contact export or contact-list harvesting.

  • Do not commit cookies, config files, raw API dumps, screenshots, or credentials.

  • Treat registered business-card results as private context; cite public sources for public-facing reports.

  • Eight business-card data can be stale. Corroborate current affiliation/title with public sources when accuracy matters.

Development

uv sync --dev
uv run ruff check .
uv run pytest

Manual MCP smoke test:

printf '%s\n' \
'{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"smoke-test","version":"0.0.0"}}}' \
'{"jsonrpc":"2.0","method":"notifications/initialized","params":{}}' \
'{"jsonrpc":"2.0","id":2,"method":"tools/list","params":{}}' \
| timeout 5s uv run eight-mcp-community serve

Available Tools

5 tools
eight_auth_loginB

Run CLI browser login in a subprocess, capture Eight cookies, and save them.

ParametersJSON Schema
NameRequiredDescriptionDefault
headlessNo
timeoutSecondsNo

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

B3.1/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided, so description carries full burden. It discloses that the tool runs a subprocess (browser CLI), captures cookies, and saves them, but lacks details on error handling, side effects, or where cookies are saved. This is adequate but not thorough.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single, clear sentence with no extraneous information. It is front-loaded with the core action, though it could be structured with bullet points for readability.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Has an output schema so return values are not needed in description. However, for a tool that runs a subprocess, more context on interactivity, expected browser, and post-login state would improve completeness. It is functional but leaves gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, and the description does not explain the parameters 'headless' and 'timeoutSeconds'. While names are somewhat self-explanatory, the description fails to compensate for the missing schema documentation.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description clearly states it runs a CLI browser login in a subprocess, captures Eight cookies, and saves them. It uses a specific verb 'login' and resource 'auth', distinguishing it from siblings like eight_auth_status, eight_fetch_person, etc.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance on when to use this tool versus alternatives. It doesn't mention prerequisites, such as whether an existing session is required, or when not to use it (e.g., if cookies are already present).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

eight_auth_statusA

Check whether Eight authentication is configured and currently usable.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.2/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries full burden. It indicates a read-like operation but does not explicitly state it is non-destructive, nor describe error cases or output behavior. The output schema exists but description lacks details beyond the one-line summary.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Single sentence, no wasted words. Front-loaded with the core action: 'Check whether Eight authentication is configured and currently usable.'

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given zero parameters and an existing output schema, the description is sufficient. It tells the tool's purpose clearly. Could mention return format or side effects, but output schema likely covers details.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

No parameters exist in the input schema, so baseline is 4. Description adds no parameter info as none are needed.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description clearly states it checks whether Eight authentication is configured and usable, using specific verb 'Check' and resource 'authentication status'. It differentiates from siblings like eight_auth_login (login) and eight_fetch_person (fetching person data).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies using this tool to verify auth status before using other tools, but does not explicitly state when not to use it or suggest alternatives. However, sibling tool names provide context.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

eight_fetch_personA

Fetch detailed contact/profile fields for an id returned by eight_search_person.

ParametersJSON Schema
NameRequiredDescriptionDefault
idYes

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A3.8/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries full burden for behavioral disclosure. It does not mention side effects (e.g., read-only), authentication requirements, error handling, or what happens for invalid ids. This is a significant gap for a fetch operation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single sentence that conveys essential information efficiently. It is appropriately sized for a simple tool, though it could be slightly more structured (e.g., separate usage hint). No waste.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool has one parameter and an output schema, the description covers the core purpose and id source. However, it lacks behavioral context (e.g., authentication, id validity) and does not leverage the output schema to explain return values (though not required). Adequate but with clear gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema has 0% description coverage, but the description adds meaning by specifying the id parameter is 'returned by eight_search_person'. This provides context beyond the bare schema, though further details (e.g., id format) would improve it.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool fetches detailed contact/profile fields for an id from eight_search_person. It uses a specific verb ('Fetch') and resource ('contact/profile fields'), and distinguishes from the sibling search tool by specifying the source of the id.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description indicates the tool should be used with an id returned by eight_search_person, providing clear context. However, it does not give explicit when-not-to-use scenarios or alternatives beyond the implied dependency on the search tool.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

eight_search_personC

Search registered Eight cards by default; source='all' also includes public network.

ParametersJSON Schema
NameRequiredDescriptionDefault
queryYes
sourceNoregistered
perPageNo
networkLimitNo

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

C2.8/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are present, so the description must carry the full burden. It mentions the default source scope and the effect of source='all', but lacks details on pagination behavior (perPage, networkLimit), potential rate limits, or safety implications. The behavior is only partially disclosed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is very concise (two clauses), front-loading the key purpose. It efficiently conveys the default behavior and the optional source parameter. However, it could be slightly more verbose without losing conciseness to cover more parameters.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the presence of an output schema (so return values don't need explanation), the description provides a basic understanding of the search scope. However, for a tool with 4 parameters, the missing explanations for query, perPage, and networkLimit leave gaps. It is adequate but incomplete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema coverage, the description should explain all parameters. Only the 'source' parameter gets partial explanation (default vs all). The 'query' parameter is not described, and 'perPage' and 'networkLimit' are completely undocumented. The description adds minimal value beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool searches for person cards, with a default scope of registered cards and optional expansion to public network. The verb 'search' and resource 'person cards' are specific, and the sibling 'eight_fetch_person' suggests a distinction between searching and fetching, though not explicitly stated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool versus alternatives like eight_fetch_person. The description does not mention prerequisites, use cases, or when not to use it, leaving the agent to infer.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 5 tool updatesv0.2.0
    • First observedeight_auth_login
    • First observedeight_auth_status
    • First observedeight_fetch_person
    • First observedeight_search_person
    • First observedeight_set_cookie

TDQS

A3.5/5.0

Scored across 5 tools

Disambiguation5/5

Each tool has a distinct purpose: authentication operations (login, status, cookie management) are separate from data retrieval (search, fetch). No overlap or ambiguity.

Naming Consistency5/5

All tools follow the consistent pattern 'eight_verb_noun' (e.g., auth_login, fetch_person). No mixing of conventions or vague verbs.

Tool Count5/5

5 tools is a compact but complete set for authentication and basic contact retrieval. Not bloated or insufficient.

Completeness4/5

Covers authentication and read operations (search, fetch) well, but lacks write operations like create/update/delete person. Minor gap for a contact management domain.

Maintenance

ActivitySlowing
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    D
    maintenance
    Enables AI agents to perform comprehensive person and company lookups by integrating directly with the Lusha API for business contact enrichment. It provides tools for bulk contact identification via LinkedIn URLs, emails, or names, alongside detailed company information retrieval.
    8
    45 npm
    6
    Apache 2.0
  • A
    license
    A
    quality
    F
    maintenance
    Enables AI tools to search and enrich B2B leads, including finding professional emails, company profiles, and filtering people and companies by various criteria.
    5
    166 npm
    MIT
  • A
    license
    Not graded
    quality
    F
    maintenance
    Enables LLMs to search for LinkedIn profiles and retrieve detailed profile information via the LinkedIn API, supporting secure OAuth2 authentication.
    84 npm
    52
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables querying ORCID public records, including profiles, publications, employment, education, and search, through natural language or direct tool calls.
    7 npm
    MIT