Skip to main content

How do I connect Cursor or VS Code to TalkGenAI?

Add the TalkGenAI server to .cursor/mcp.json (Cursor) or .vscode/mcp.json (VS Code). Cursor can sign you in with OAuth, so the URL is enough. If you prefer a key, add it as a header. The editor’s agent then sees the TalkGenAI tools and can write an article and save it as a draft on your site.

What do I need first?

  • Cursor or VS Code with MCP support.
  • A TalkGenAI account (free). Only the workspace owner can approve a sign-in.
  • An agent key (starts with tgai_) only if you use the key method. See Connect your AI agent.

How do I do it with a sign-in (no key)?

Add this to .cursor/mcp.json or .vscode/mcp.json, with no headers:
Reload the window. Cursor opens the TalkGenAI sign-in page when the server asks for it. Sign in and approve the connection. We have tested this sign-in with Claude.ai and Claude Code. We have not tested it in Cursor or VS Code yet. If it does not work, use the key method below.

How do I do it with an agent key?

Add this instead:
Then reload the window or restart the editor. Use one method or the other: a stored key header turns the sign-in off.
Do not commit this file with a real key in it. Add it to .gitignore, or keep it in your user-level configuration instead of the project.

How do I check that it worked?

Open the MCP panel in your editor. talkgenai should be listed with its tools. Ask the agent: “Check my TalkGenAI credits.”

What prompt should I give the agent?

Use TalkGenAI to write a post about “how to choose a CRM for a 5-person agency”. Wait for it to finish, then save it as a draft on my site and show me the edit link.
The agent saves a draft unless you ask for it to go live. See Publish safely.

What can go wrong?

Last updated: 2026-11-14

Create a free account

About two minutes. No card.