Use Datamagnet in Codex: live people and company data
Two commands give the Codex CLI live professional profiles, company pages, posts and ICP search, so it can work with real records instead of made-up ones.
https://mcp.datamagnet.co/mcpHow do I connect Codex to Datamagnet?
Run codex mcp add datamagnet --url https://mcp.datamagnet.co/mcp, then codex mcp login datamagnet and approve the sign-in in your browser. Where no browser is available, add the server with --bearer-token-env-var pointing at an environment variable that holds your Datamagnet API key.
- Sign-in
- OAuth or API key
- Tools
- 19
- To start
- 10 free credits
Set up Datamagnet in Codex
A recent version of the Codex CLI.
- 1
Add the server.
Terminalcodex mcp add datamagnet --url https://mcp.datamagnet.co/mcp - 2
Sign in. Your browser opens; approve the connection.
Terminalcodex mcp login datamagnet
Use an API key instead
For machines where a browser sign-in is not possible, such as a server or CI job. Create a key on your API keys page; a dedicated key per tool lets you revoke one without breaking the others.
export DATAMAGNET_API_KEY=YOUR_API_KEY
codex mcp add datamagnet --url https://mcp.datamagnet.co/mcp \
--bearer-token-env-var DATAMAGNET_API_KEYTools you get in Codex
19 tools, each priced up front so Codex can plan within your balance. Credits are charged only when a call succeeds.
| Tool | What it does | Credits |
|---|---|---|
| People | ||
get_person_profile | A person's profile: name, headline, current role and company, location, experience and education. | 1 credit (+2 per optional add-on) |
get_person_activity | What a person recently posted, commented on, reacted to or published as an article. | 10 credits per page |
| Companies | ||
get_company_profile | A company page: industry, headcount, headquarters, specialties and recent updates. | 1 credit (+10 insights, +5 funding) |
get_company_posts | Posts from a company page, with text, media and engagement counts. | 10 credits per page |
get_company_funding_rounds | Funding history from a web domain: amount, round type and announcement date. | 5 credits |
| Posts and jobs | ||
get_post | One post by URL: author, text, media, engagement counts and publish time. | 1 credit |
get_post_engagement | The people who commented on, reacted to or reposted a post. | 10 credits per page |
get_job_details | One job posting: title, description, location, seniority, applicant counts and hiring company. | 1 credit (+1 hiring team) |
| Search | ||
search_posts | Posts by keyword, author, company, employer, mention, industry or date, 10 a page with engagement counts. | 10 credits per page |
search_people | People who match an ideal customer profile, using plain-language filters. | 10 credits per page |
search_companies | Companies that match an ideal customer profile. | 10 credits per page |
list_filter_values | Every accepted value for the search filters. | Free |
suggest_filter_values | Matching values for one filter: company, job title, location, school, technology or function. | 1 credit |
| Signals and account | ||
create_signal | Start a monitor for job changes, new posts or engagement with posts. | Free to create |
list_signals | Your monitors, and whether each is active or paused. | Free |
list_signal_leads | The leads your engagement monitors have found. | Free |
update_signal | Pause, resume, rename or edit a monitor. | Free |
delete_signal | Delete a monitor permanently. | Free |
check_credits | Your remaining, total and used credits. | Free |
Every data tool is read-only and returns public data. Datamagnet never signs in to your own social accounts, and it cannot post, message or look up email addresses and phone numbers. The only tools that change anything are the signal tools, which manage your own Datamagnet monitors and are marked as write actions. Optional add-ons on profiles and companies are charged only when they return data; see pricing.
Try asking Codex
“Fetch the company profile for <company page URL> and add its headcount and industry to accounts.csv.”
“Get the job posting at <job URL>, including its hiring team.”
“Check my credits, then look up these three profiles: <URLs>.”
Replace the placeholders in angle brackets with a real profile, company page, post or job URL.
Set up Datamagnet in another app
Frequently asked questions
Give Codex live people and company data
10 free credits, no credit card. Connected in under two minutes.
- 19 tools, priced up front
- Charged only on success
- Plans from $39/month or pay as you go
Interactive Demo
~15 minutes
Create an account
1 minAdd the server to Codex
1 minAsk your first question
now