Developers
XInvest MCP server
Quick start
1. Create an API key
In Settings → API keys, create a key and copy it straight away: only its SHA-256 hash is stored, so it is shown once.
2. The endpoint
https://xinvest.co/functions/v1/mcp-server3. Connect your client
Add XInvest as an MCP server in your client's config (below), or call the endpoint over JSON-RPC.
Client configuration
Claude Desktop
In claude_desktop_config.json:
{
"mcpServers": {
"xinvest": {
"type": "streamable-http",
"url": "https://xinvest.co/functions/v1/mcp-server",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}Cursor
In .cursor/mcp.json, the same block:
{
"mcpServers": {
"xinvest": {
"type": "streamable-http",
"url": "https://xinvest.co/functions/v1/mcp-server",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}Direct HTTP
List the tools:
curl -X POST "https://xinvest.co/functions/v1/mcp-server" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'Call one:
curl -X POST "https://xinvest.co/functions/v1/mcp-server" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"get_account_summary","arguments":{}}}'Any MCP client
Use the Streamable HTTP transport with the endpoint above and your key as a Bearer token in Authorization.
Authentication and scoping
- Key format.
xiv_followed by 64 hex characters. - Storage. Only a SHA-256 hash is kept. A lost key can't be recovered: revoke it and create another.
- Usage. Each key's last-used date updates on every request and shows in Settings.
- Per-user scope. A key acts as one user.
create_*,update_*,publish_*anddelete_*only touch that user's data; lists default toscope: "mine", andscope: "public"browses what is published. - 1Profile. AW3's ZeusMCP connects with a short-lived 1Profile access token instead of a key; the request runs as the XInvest account with that 1Profile identity.
Errors
A missing, unknown or revoked key gets:
HTTP 401 Unauthorized
{ "error": "Unauthorized. Provide a valid API key via Authorization: Bearer <key>" }Tool errors come back as MCP errors with a message — for example Not found or not owned, Provide id or slug, or Insufficient credits.
Limits and validation
- Pagination:
limitis clamped to 1–100 (200 for interest lists, 500 for email leads);offsetto 0–1,000,000. - Email: trimmed, lowercased and checked for a valid address.
- Custom links: at most 20 per page; each needs a label (≤ 100 characters) and an
http(s)://URL (≤ 2,000). - Reordering portfolio pages: at most 500 ids, no duplicates.
- Discovery query: at most 200 characters; reserved characters are stripped.
- Protected fields:
id,user_id,owner_id,created_at,updated_at,slug,view_countand key fields are dropped from create, update and upsert inputs. - AI drafting:
generate_page_contentuses 10 XInvest credits per call, checked before the model runs and refunded if generation fails. Calls time out after 45 seconds. - Privacy: a
get_*for a row you don't own that isn't published answers "Not found", exactly like a missing id. - CORS: any origin, with
OPTIONSpreflights answered andmcp-session-idexposed, so browser-based clients work.
Investor Pages (Campaigns)
An investor page (also called a campaign) is the public-facing page for a single company. Reads default to the authenticated user's pages; pass scope: "public" to browse published pages from the whole platform.
list_investor_pagesList investor pages. Defaults to the authenticated user's pages (drafts included).
- scope
- "mine" | "public" — Default "mine". "public" returns published pages from all users.
- industry
- string — Filter by industry.
- search
- string — Substring match on company name.
- limit
- number — Default 20, max 100.
- offset
- number — Pagination offset.
get_investor_pageGet full details of an investor page by id or slug.
- id
- string — Page UUID. Provide either id or slug.
- slug
- string — Page slug. Provide either id or slug.
create_investor_pageCreate a new investor page owned by the authenticated user.
- company_name *
- string — Company name.
- tagline
- string — One-line tagline.
- description
- string — Investor-facing description.
- industry
- string
- funding_goal
- string — e.g. "$500K".
- min_investment
- string
- team_members
- string
- traction
- string
- use_of_funds
- string
- contact_email
- string
- website
- string
- is_published
- boolean — Publish immediately (default false).
update_investor_pageUpdate fields on a page you own. Only provided fields are written.
- id *
- string — Page UUID.
- company_name | tagline | description | industry | funding_goal | min_investment | team_members | traction | use_of_funds | contact_email | website | is_published
- ... — Any subset of the create fields.
publish_investor_pagePublish or unpublish a page you own.
- id *
- string
- publish *
- boolean — true to publish, false to unpublish.
duplicate_investor_pageDuplicate a page you own as a new unpublished draft.
- id *
- string
- new_name
- string — Defaults to "<name> (Copy)".
update_investor_page_brandingUpdate visual branding: logo, cover image, colors, font, OG image, CTA, video, GA tracking, Calendly.
- id *
- string
- logo_url | cover_image_url | og_image_url
- string — Image URLs.
- primary_color | secondary_color
- string — Hex string like #FF6600.
- background_style
- "gradient"|"solid"|"dots"|"lines"
- font_family | custom_font_url | cta_button_text | video_url | ga_tracking_id | calendly_url
- string
update_investor_page_documentsAttach pitch deck, business plan, or data room URLs.
- id *
- string
- pitch_deck_url | business_plan_url | data_room_url
- string
set_investor_page_custom_linksReplace the page's custom links array (max 20). Each link is {label, url}.
- id *
- string
- links *
- Array<{label, url}> — Full replacement set (max 20).
delete_investor_pageDestructivePermanently delete a page you own.
- id *
- string
Leads & Interest Submissions
Each investor page captures two streams: non-binding interest submissions (with name/email/amount/message) and lightweight email leads from the email gate.
list_investor_interestsList interest submissions for a page you own.
- investor_page_id *
- string
- limit
- number — Default 50, max 200.
- offset
- number
list_investor_page_leadsList email leads captured via the page's email gate.
- investor_page_id *
- string
- limit
- number — Default 50, max 500.
submit_investor_interestSubmit a non-binding interest expression for a published page (open to any caller).
- investor_page_id *
- string
- name *
- string
- email *
- string
- company
- string
- investment_amount
- string
- message
- string
Portfolios
Portfolios are branded showcases that group multiple investor pages. They support custom domains, white-labeling, email gating, and access passwords.
list_portfoliosList portfolios. Defaults to your portfolios; pass scope="public" to browse the platform.
- scope
- "mine" | "public" — Default "mine".
- search
- string
- limit
- number
- offset
- number
get_portfolioGet full details of a portfolio (including ordered pages it contains) by id or slug.
- id
- string
- slug
- string
create_portfolioCreate a new portfolio owned by you.
- name *
- string
- tagline | description
- string
- primary_color | secondary_color
- string
- is_published
- boolean
- team_id
- string — Optional team owner.
update_portfolioUpdate portfolio settings: branding, custom domain, white-label, gating, TOS, access password.
- id *
- string
- name | tagline | description
- string
- logo_url | cover_image_url | og_image_url | font_family | custom_font_url
- string
- primary_color | secondary_color
- string — Hex.
- website | linkedin_url | twitter_url | custom_domain
- string
- is_white_label | require_email | require_tos
- boolean
- tos_text | access_password
- string
publish_portfolioPublish or unpublish a portfolio.
- id *
- string
- publish *
- boolean
add_page_to_portfolioAdd one of your investor pages to one of your portfolios.
- portfolio_id *
- string
- investor_page_id *
- string
- display_order
- number
remove_page_from_portfolioRemove a page from a portfolio (the page itself is not deleted).
- portfolio_id *
- string
- investor_page_id *
- string
reorder_portfolio_pagesReorder pages inside a portfolio. Supply the full ordered list of page IDs.
- portfolio_id *
- string
- investor_page_ids_in_order *
- string[] — Full ordered array.
list_portfolio_leadsList email leads captured by a portfolio's gated access form.
- portfolio_id *
- string
- limit
- number — Default 50, max 500.
delete_portfolioDestructivePermanently delete a portfolio you own.
- id *
- string
Founder & Investor Profiles
Each user can have a founder profile, an investor profile, or both. Public profiles appear in directory listings and discovery.
get_my_profilesGet the authenticated user's founder + investor profiles in a single call.
list_founder_profilesList public founder profiles. Supports name search and pagination.
- search
- string
- limit
- number
- offset
- number
get_founder_profileGet a founder profile by user_id. Defaults to your own profile.
- user_id
- string — Defaults to the authenticated user.
upsert_founder_profileCreate or update the authenticated user's founder profile.
- display_name | title | bio | location
- string
- website | linkedin_url | twitter_url | avatar_url
- string
- skills | looking_for
- string[] — Arrays of tags.
- previous_companies | education | achievements
- string
- is_public
- boolean
list_investor_profilesList public investor profiles. Optionally filter by industry-of-interest.
- search
- string
- industry
- string
- limit
- number
- offset
- number
get_investor_profileGet an investor profile by user_id. Defaults to your own profile.
- user_id
- string — Defaults to the authenticated user.
upsert_investor_profileCreate or update the authenticated user's investor profile.
- display_name | bio | avatar_url | website | linkedin_url
- string
- industries_of_interest | investment_stage_preferences | geographic_preferences
- string[]
- min_investment_amount | max_investment_amount | investment_criteria
- string
- is_public
- boolean
Teams
Teams allow multiple users to collaborate on portfolios. Roles: viewer, editor, admin.
list_teamsList teams the authenticated user is a member of.
list_team_membersList members of a team you belong to.
- team_id *
- string
create_teamCreate a new team owned by the authenticated user. Auto-adds you as admin.
- name *
- string
invite_team_memberInvite a user to a team by email. Caller must be an admin or editor.
- team_id *
- string
- email *
- string
- role
- "viewer"|"editor"|"admin" — Default "viewer".
Bookmarks
Investors can bookmark interesting investor pages from the discover directory.
list_bookmarksList the authenticated user's bookmarked pages.
toggle_bookmarkAdd or remove a bookmark on an investor page.
- investor_page_id *
- string
- bookmark *
- boolean — true to add, false to remove.
Preferences
Per-user notification and app preferences.
get_preferencesGet the authenticated user's preferences.
update_preferencesUpdate the authenticated user's preferences.
- email_notifications
- boolean
Newsletter
Subscribe an email to the platform newsletter.
Analytics
Aggregated metrics for your campaigns, portfolios, account, and the platform.
get_page_analyticsPer-page analytics: views, interest submissions, email leads, conversion rate.
- investor_page_id *
- string
get_portfolio_analyticsPortfolio-level analytics with per-page breakdown.
- portfolio_id *
- string
get_account_summaryPer-user summary: total campaigns, portfolios, leads, views.
get_platform_statsPlatform-wide statistics across all published entities.
Discovery
Cross-entity search across the public platform.
discoverSearch across investor pages, founder profiles, investor profiles, and portfolios.
- query *
- string — Search text.
- type
- "pages"|"founders"|"investors"|"portfolios"|"all" — Default "all".
- limit
- number — Default 10, max 50.
AI Content Generation
Draft investor-page copy using the platform's content model.
generate_page_contentGenerate copy for one field of an investor page. Costs 10 credits per call (deducted before generation; throws "Insufficient credits" if balance < 10).
- company_name *
- string — Max 200 chars.
- field *
- "tagline"|"description"|"traction"|"use_of_funds"|"team_members"
- industry
- string — Max 100 chars.
- context
- string — Max 2000 chars. Additional context to steer the generation.
