Cursor
Edit ~/.cursor/mcp.json (or open Cursor settings → MCP → edit config):
Hosted (recommended)
{
"mcpServers": {
"talonic": {
"url": "https://mcp.talonic.com/mcp",
"headers": {
"Authorization": "Bearer tlnc_your_key_here"
}
}
}
}Local (npx)
{
"mcpServers": {
"talonic": {
"command": "npx",
"args": ["-y", "@talonic/mcp@latest"],
"env": {
"TALONIC_API_KEY": "tlnc_your_key_here"
}
}
}
}After saving the config, restart Cursor or reload the window. The Talonic tools appear in the MCP tool list and can be invoked from Cursor's AI chat panel. Cursor's agent mode is particularly effective with Talonic because it can read local files from your project and pass them directly to talonic_extract via file_path.
A common Cursor workflow is extracting data from documents within a codebase — for example, parsing specification PDFs, extracting configuration from scanned documents, or converting legacy documentation to structured data. The file_path input works directly with paths relative to your Cursor workspace.
Cursor caches MCP tool descriptions between sessions. If you upgrade the MCP server and notice outdated tool descriptions, restart Cursor to force a refresh of the tool metadata.
Example: extracting from a project file
// User: "Extract the requirements from docs/product-spec.pdf"
// Cursor agent calls talonic_extract with:
{
"file_path": "./docs/product-spec.pdf",
"schema": {
"type": "object",
"properties": {
"title": { "type": "string" },
"requirements": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": { "type": "string" },
"description": { "type": "string" },
"priority": { "type": "string" }
}
}
},
"deadline": { "type": "string", "format": "date" }
}
}
}Cursor's composer mode is particularly powerful with Talonic because the agent can extract data from a document and immediately use it to generate code. For example, you can ask Cursor to extract fields from an API specification PDF and then generate TypeScript interfaces matching the extracted schema. The agent chains talonic_extract with code generation in a single turn, eliminating manual data entry.
When using the hosted MCP option in Cursor, the connection is established over HTTPS with no local process. This means Cursor starts faster and there is no Node.js dependency. For teams sharing a Cursor workspace configuration, the hosted option is simpler to standardise because every developer only needs an API key — no local Node.js version management needed.