Skip to main content

langchain-recruitmcp

LangChain integration for RecruitMCP. It loads RecruitMCP's MCP tools (search people and companies, enrich profiles, find email and phone) as LangChain tools for your agents.

Install

pip install langchain-recruitmcp

Set your key

Get a free API key at recruitmcp.com, then:

export RECRUITMCP_KEY=rmcp_live_...

Use

import asyncio
from langchain_recruitmcp import RecruitMCPToolkit

async def main():
    tools = await RecruitMCPToolkit().aget_tools()
    by_name = {t.name: t for t in tools}
    print(await by_name["resolve_location"].ainvoke({"text": "Ghent, Belgium"}))

asyncio.run(main())

With a LangGraph agent:

from langchain.agents import create_agent

agent = create_agent("openai:gpt-4.1-mini", tools=await RecruitMCPToolkit().aget_tools())

Options

Argument Default What it does
api_key RECRUITMCP_KEY env var Your RecruitMCP key
url RECRUITMCP_MCP_URL or https://mcp.recruitmcp.com/mcp MCP endpoint
sourcing_only True Drops outreach tools only. Uses the tool's recruitmcp/category metadata when present, otherwise its name
include None Keep only these tool names
exclude None Drop these tool names

The tools you get also depend on your key's scopes: the server only lists tools the key may use.

Credits

resolve_location and search_people with dry_run: true are free. Paid calls show their cost in the response. See recruitmcp.com/docs/mcp.

Development

pip install -e . pytest pytest-asyncio
pytest                                   # unit tests, no network
RECRUITMCP_KEY=... pytest tests/integration_tests   # live, 0 credits

License

MIT

Metadata

Release files for langchain-recruitmcp 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for langchain-recruitmcp 0.1.0
File Size Uploaded
langchain_recruitmcp-0.1.0.tar.gz 6.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for langchain-recruitmcp 0.1.0
File Interpreter ABI Platform
langchain_recruitmcp-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 11.4 kB

Release files / langchain_recruitmcp-0.1.0.tar.gz

Download URL langchain_recruitmcp-0.1.0.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
01e8dda7c0181b1eab1298c6d57b46ab74823c187301d685f8dfe8e0f8bd01f0
BLAKE2b-256 checksum
How to use checksums
8326ede4456a48901c068502ca1d75916068d9c5a927b212171e9a937cad7ff9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / langchain_recruitmcp-0.1.0-py3-none-any.whl

Download URL langchain_recruitmcp-0.1.0-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
34720e70323ff5cdddac8e3bc9070c028744c27c5e561ab3428b7b085bb8b3a8
BLAKE2b-256 checksum
How to use checksums
ea1534d32772a34d629e56d822c64521f6411db7e4fa14260570655bc2a37472
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page