# Textcortex — how to use (mcp.ai)

Connect your Textcortex account and use 7 tools for artificial intelligence straight from your AI agent. Connect with your own API key. TextCortex offers an AI-powered text generation API that enables developers to integrate advanced language models into their applications for tasks such as content creation, paraphrasing, and more.

## Option A — via MCP (recommended)
Remote MCP endpoint (HTTP, streamable): `https://api.mcp.ai/p_textcortex?ms=1787293380000`
Add it as a custom/remote MCP connector in your client (Claude, Cursor, VS Code…), then authenticate when prompted. Once connected, ask the agent to use the server's tools (e.g. `textcortex_create_product_title`).

## Option B — via direct REST API
Base URL: `https://api.mcp.ai/api/textcortex`
Auth: `Authorization: Bearer sk_live_…` — create a workspace API key at https://mcp.ai/settings/api-keys
Discover endpoints: `GET https://api.mcp.ai/api/textcortex/_endpoints`

### Endpoints
- `POST https://api.mcp.ai/api/textcortex/create/product/title` — Tool to generate catchy product titles for listings. Use when you need to create compelling titles for product listings or descriptions.
  - body: { n?: integer, name?: string, brand?: string, model?: string, category?: string, keywords?: string[], formality?: string, max_tokens?: integer, description?: string, source_lang?: string, target_lang?: string, temperature?: number }
- `POST https://api.mcp.ai/api/textcortex/create/social/media/post` — Tool to generate engaging social media posts for Twitter and LinkedIn. Use when you need to create platform-specific content with appropriate tone, length, and formatting.
  - body: { n?: integer, mode: string, model?: string, context: string, keywords?: string[], formality?: string, max_tokens?: integer, source_lang?: string, target_lang?: string, temperature?: number }
- `POST https://api.mcp.ai/api/textcortex/create/video/description` — Tool to generate compelling video descriptions for YouTube or other platforms. Use when you need to create optimized descriptions that include context, keywords, and target audience information.
  - body: { n?: integer, mode?: string, model?: string, title: string, context: string, keywords?: string[], formality?: string, max_tokens?: integer, source_lang?: string, target_lang?: string, temperature?: number }
- `POST https://api.mcp.ai/api/textcortex/generate/code` — Tool to generate code for a given programming language. Use when you need to create code snippets, functions, or algorithms in specific programming languages.
  - body: { n?: integer, mode: string, text: string, model?: string, max_tokens?: integer, temperature?: number }
- `POST https://api.mcp.ai/api/textcortex/generate/email` — Tool to generate email body and subject based on provided details. Use when you need to compose or personalize an email from a prompt.
  - body: { context: string }
- `POST https://api.mcp.ai/api/textcortex/summarize/text` — Tool to summarize text. Use when you need a concise summary of longer content. Use after confirming the full input text.
  - body: { n?: integer, mode?: string, text?: string, model?: string, file_id?: string, formality?: string, max_tokens?: integer, source_lang?: string, target_lang?: string, temperature?: number }
- `POST https://api.mcp.ai/api/textcortex/translate/text` — Tool to translate text into another language. Use when you need to translate content between different languages. Supports 72+ languages with auto-detection capability.
  - body: { n?: integer, text: string, model?: string, max_tokens?: integer, source_lang?: string, target_lang: string, temperature?: number }

## Example prompts
- "What can I do in Textcortex?"
- "Show me a summary of my Textcortex account"

## More
- Page: https://mcp.ai/textcortex
- Agent spec (llms.txt): https://mcp.ai/textcortex/llms.txt
- Postman collection: https://mcp.ai/textcortex/postman.json
