> **Building with AI coding agents?** Install the authstack plugin with one command. This equips your agent with accurate Scalekit implementation patterns.
>
> **Recommended** (the `-y` flags skip prompts, so the command runs without an interactive terminal):
> ```bash
> npx -y @scalekit-inc/cli setup -y
> ```
>
> Global:
> ```bash
> npm install -g @scalekit-inc/cli
> scalekit setup -y
> ```
>
> Supports Claude Code, Cursor, GitHub Copilot, Codex + skills for other Agent Skills-compatible agents in `~/.agents/skills`.
> Skills: integrate-agentkit, implement-saaskit, add-mcp-oauth, implement-sso, implement-scim.
> [Full setup guide](https://docs.scalekit.com/dev-kit/build-with-ai/)

---

# Connect AI agents to the MT Newswires MCP server

The MT Newswires MCP connector routes your AI agent's tool calls to MT Newswires's own MCP server through Scalekit. Each user signs in to MT Newswires once, and Scalekit stores and refreshes their tokens, so your agent never handles credentials. It comes with 6 tools.

**Authentication:** OAuth 2.1/DCR
**Categories:** Finance, Search
**Tools:** 6: 4 read, 1 write, 1 destructive
**Users sign in with:** OAuth
**OAuth app:** Scalekit's or your own
**Built by:** Vendor MCP
**Try it:** [Playground in the Scalekit dashboard](https://app.scalekit.com/ws/signup?sk_intent=playground&provider=MTNEWSWIRESMCP)

## Setup

1. ### Install the SDK

   **Node.js**

   ```bash
   npm install @scalekit-sdk/node dotenv
   ```

   **Python**

   ```bash
   pip install scalekit-sdk-python python-dotenv
   ```

2. ### Set your credentials

   Add your Scalekit credentials to your `.env` file. Find values in **[app.scalekit.com](https://app.scalekit.com)** > **Developers** > **API Credentials**.

   ```sh title=".env"
   SCALEKIT_ENVIRONMENT_URL=<your-environment-url>
   SCALEKIT_CLIENT_ID=<your-client-id>
   SCALEKIT_CLIENT_SECRET=<your-client-secret>
   ```

3. ### Create the MT Newswires MCP connection

   In **AgentKit > Connections**, create a MT Newswires MCP connection. The name you give it is the `connection_name` your code passes. See [Configure connections](/agentkit/connections/).

   Scalekit credentials are available for MT Newswires MCP server, so you don't need to register an OAuth app.

4. ### Authorize a user and make your first call

   **Node.js** (`quickstart.mts`)

   ```typescript
   import { ScalekitClient } from '@scalekit-sdk/node'
   import 'dotenv/config'
   import { createInterface } from 'node:readline/promises'

   const scalekit = new ScalekitClient(
     process.env.SCALEKIT_ENVIRONMENT_URL,
     process.env.SCALEKIT_CLIENT_ID,
     process.env.SCALEKIT_CLIENT_SECRET,
   )
   const actions = scalekit.actions

   const connector = 'mtnewswiresmcp'
   const identifier = 'user_123'

   // Generate an authorization link for the user
   const { link } = await actions.getAuthorizationLink({ connectionName: connector, identifier })
   console.log('Authorize MT Newswires MCP:', link)
   const rl = createInterface({ input: process.stdin, output: process.stdout })
   await rl.question('Press Enter after authorizing...')
   rl.close()

   // Make your first call
   const result = await actions.executeTool({
     connector,
     identifier,
     toolName: 'mtnewswiresmcp_current_date',
     toolInput: {},
   })
   console.log(result)
   ```

   ```bash
   npx tsx quickstart.mts
   ```

   **Python** (`quickstart.py`)

   ```python
   import os
   from scalekit import ScalekitClient
   from dotenv import load_dotenv
   load_dotenv()

   scalekit_client = ScalekitClient(
       env_url=os.getenv("SCALEKIT_ENVIRONMENT_URL"),
       client_id=os.getenv("SCALEKIT_CLIENT_ID"),
       client_secret=os.getenv("SCALEKIT_CLIENT_SECRET"),
   )
   actions = scalekit_client.actions

   connection_name = "mtnewswiresmcp"
   identifier = "user_123"

   # Generate an authorization link for the user
   link_response = actions.get_authorization_link(
       connection_name=connection_name,
       identifier=identifier,
   )
   print("Authorize MT Newswires MCP:", link_response.link)
   input("Press Enter after authorizing...")

   # Make your first call
   result = actions.execute_tool(
       tool_input={},
       tool_name="mtnewswiresmcp_current_date",
       connection_name=connection_name,
       identifier=identifier,
   )
   print(result)
   ```

   ```bash
   python quickstart.py
   ```

   Each user signs in once. See [Authorize a user](/agentkit/tools/authorize/) for the full flow and statuses.

## Tools

Pass the exact name to `execute_tool`, with an input like each tool's example. To ask for a tool that's missing, use the [request form](https://scalekitsupport.portal.usepylon.com/forms/request-a-connector-tool).

**Node.js**

```typescript
const result = await actions.executeTool({
  toolName: 'mtnewswiresmcp_current_date',
  toolInput: {},
  connector: 'mtnewswiresmcp',
  identifier: 'user_123',
})
```

**Python**

```python
result = actions.execute_tool(
    tool_name="mtnewswiresmcp_current_date",
    tool_input={},
    connection_name="mtnewswiresmcp",
    identifier="user_123",
)
```

`result.data` is the app's response as JSON, and `result.execution_id` (`executionId` in Node.js) is the ID of the call.

### `mtnewswiresmcp_current_date`

Current Date · Read-only

Provides the current date. Use this to ground relative date references (for example "today" or "this week") before searching datasets or fetching data.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs: none.

Example input: `{}`

### `mtnewswiresmcp_fetch`

Fetch Dataset Data · Read-only

Retrieve rows of data from a viaNexus / MT Newswires dataset. Use the Search tool first to discover the dataset name and its supported parameters, then pass them here. Returns the dataset fields and their values.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `dataset_name` (`string`, required): The dataset name to retrieve data from, as returned by the Search tool.
- `country` (`string`, optional): Country code for country-keyed datasets that include a {country} path parameter (e.g. "US", "CA", "GB").
- `endpoint` (`string`, optional): The dataset endpoint. Only "data" is supported. One of: `data`. Default: `data`.
- `filter` (`string`, optional): Optional filter expression applied to the dataset query.
- `from_date` (`string`, optional): Start date of a date range (YYYY-MM-DD).
- `last` (`integer`, optional): Lookback limit passed to the viaNexus API as the `last` query parameter. Interpretation is dataset-specific (days, bars, records, etc.).
- `limit` (`integer`, optional): Hard cap on the number of rows returned, applied client-side after the upstream fetch. Use for a deterministic row count (for example last=1, limit=3 on an intraday dataset returns 3 bars).
- `on_date` (`string`, optional): Retrieve data as of a single date (YYYY-MM-DD).
- `product` (`string`, optional): The product (workspace) the dataset belongs to. One of: `CORE`, `EDGE`. Default: `CORE`.
- `region` (`string`, optional): Region code for region-keyed datasets that include a {region} path parameter.
- `subkey` (`string`, optional): Optional sub-key path parameter for datasets that require one.
- `symbols` (`string`, optional): Comma-delimited financial instrument identifiers. Supports symbol, FIGI, ISIN, and LEI (e.g. "MSFT", "AAPL,NVDA", "BBG000BPHFS9", "US5949181045").
- `to_date` (`string`, optional): End date of a date range (YYYY-MM-DD).

Example input: `{"dataset_name":"<dataset_name>"}`

### `mtnewswiresmcp_get_rules`

Get Rules · Read-only

Get all alert rules associated with the user. Each rule includes its id, name, dateCreated, isActive, passed, failed, and conditions.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs: none.

Example input: `{}`

### `mtnewswiresmcp_search`

Search Datasets · Read-only

Search the available viaNexus / MT Newswires datasets. Pass an empty query to list every dataset, or a dataset name to find a specific one. Returns each dataset's name, description, path parameters, query parameters, and fields — use these to build a Fetch call.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `query` (`string`, optional): Dataset name to search for. Use an empty string or omit to return all datasets.

Example input: `{}`

### `mtnewswiresmcp_create_rule`

Create Rule · Write

Create an alert rule for one or more datasets that sends an email when the conditions are met. Supports single-dataset and cross-dataset rules, multiple conditions combined with AND/OR logic, and field-to-field comparisons (for example moving-average crossovers).

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `conditions` (`array`, required): List of structured condition objects evaluated by the rule.
- `condition_type` (`string`, optional): Whether all or any of the conditions must be met for the rule to trigger. One of: `all`, `any`. Default: `all`.

Example input: `{"conditions":[]}`

### `mtnewswiresmcp_delete_rule`

Delete Rule · Destructive

Delete an alert rule by its id. Use the Get Rules tool to find the id of the rule to delete.

Read only: no. Destructive: yes. Idempotent (safe to retry): yes.

Inputs:

- `id` (`string`, required): Identifier of the rule to delete, as returned by the Get Rules tool.

Example input: `{"id":"<id>"}`

## Related

Other Accounting & Finance connectors ([all 47](/agentkit/connectors/?category=accounting-finance)):

- [QuickBooks](/agentkit/connectors/quickbooks/): Scalekit connector, OAuth, 117 tools
- [Xero](/agentkit/connectors/xero/): Scalekit connector, OAuth, 94 tools
- [Stripe](/agentkit/connectors/stripe/): Scalekit connector, Access token, 178 tools


---

## More Scalekit documentation

| Resource | What it contains | When to use it |
|----------|-----------------|----------------|
| [/llms.txt](/llms.txt) | Structured index with routing hints per product area | Start here — find which documentation set covers your topic before loading full content |
| [/llms-full.txt](/llms-full.txt) | Complete documentation for all Scalekit products in one file | Use when you need exhaustive context across multiple products or when the topic spans several areas |
| [sitemap-0.xml](https://docs.scalekit.com/sitemap-0.xml) | Full URL list of every documentation page | Use to discover specific page URLs you can fetch for targeted, page-level answers |
