# Connect MarketNewsAPI to Claude Code

Add the server with one command. Use an API key, or leave it out and sign in with OAuth.

> The MCP server is part of [Pro](/pricing), including the 7-day trial. Server URL: `https://mcp.marketnewsapi.com/mcp`

## Set it up

1. Run the command below in your terminal.
2. Start Claude Code and run `/mcp` to check that **marketnewsapi** is connected.
3. Without the header, choose **Authenticate** in `/mcp` to sign in through your browser instead.

With an API key

```bash
claude mcp add --transport http marketnewsapi https://mcp.marketnewsapi.com/mcp \
 --header "Authorization: Bearer mna-live-YOUR_KEY"
```

With OAuth sign-in

```bash
claude mcp add --transport http marketnewsapi https://mcp.marketnewsapi.com/mcp
```

Replace `mna-live-YOUR_KEY` with a key from your [dashboard](/dashboard/keys). The [Connect your AI](/dashboard/connect) page fills it in for you.

## Try it

Ask something that needs current news, for example:

- “What's the latest news on NVDA and AAPL?”
- “Find press releases about semiconductor stocks from last week.”
- “Read the full Microsoft buyback press release and list the key numbers.”
- “Give me a briefing on what moved markets overnight.”

Or start from one of the built-in [prompts](/docs/mcp-tools#prompts), such as `morning_briefing`.

## Troubleshooting

- **401 / “couldn't connect”:** the key is wrong or revoked, or the OAuth sign-in didn't finish. Check your keys in the dashboard and reconnect.
- **403:** the key belongs to a Free account. MCP needs Pro.
- **Tools don't appear:** restart the app after editing config files, and make sure the JSON is valid.

Other apps: [Claude](/docs/mcp/claude), [Claude Desktop](/docs/mcp/claude-desktop), [Cursor](/docs/mcp/cursor), [VS Code](/docs/mcp/vscode), [Windsurf](/docs/mcp/windsurf), [ChatGPT](/docs/mcp/chatgpt).
