---
title: Cursor's MCP server isn't working
description: Where Cursor keeps its MCP servers, where it shows their tools and logs, and what to change when Hamloy or any remote server doesn't connect.
url: https://hamloy.com/mcp-fix/cursor
---

[MCP fix](https://hamloy.com/mcp-fix)

# Cursor's MCP server isn't working

Where Cursor keeps its MCP servers, where it shows their tools and logs, and what to change when Hamloy or any remote server doesn't connect.

Cursor reads its MCP servers from two files, shows each server's tools in its settings, and writes what went wrong to a log of its own. From Cursor's own docs, read on 17 October 2026.

## Where the file is

- `.cursor/mcp.json` in the folder you work in, for that folder alone.
- `~/.cursor/mcp.json` in your home folder, for every folder.

Both put servers under `mcpServers`. A remote server needs only its address, in `url`:

```
{ "mcpServers": { "hamloy": { "url": "https://hamloy.com/mcp" } } }
```

The **Add to Cursor** button on [Cursor's page](https://hamloy.com/docs/cursor) writes the second file for you.

## See whether it is on

Open **Customize** in Cursor's sidebar. Each server has a switch, and under it its **Available Tools**. A server that is on with no tools didn't connect: read its log. One that isn't listed wasn't read: check the file for a mistake, and if it looks right, start Cursor again.

## Read the log

Open the **Output** panel (Cmd+Shift+U) and pick **MCP Logs** from its list. It says which server failed to start or to sign in, and why.

## Make Cursor read the file again

Cursor usually notices a change to either file. If a server doesn't show, start Cursor again; that is also when it reads a variable such as `HAMLOY_TOKEN` from your shell.

## Sign in again

Take the server out of the file, save, put it back and save: Cursor opens the sign-in window again. To cut the connection from Hamloy's side, the Connect page lists Cursor under **Connected apps** , with **Disconnect**.

## Its own quirks

- Cursor asks before each tool call until you let it run that tool without asking.
- On an Enterprise plan, an admin can keep a list of the MCP servers Cursor may use, under **Team Settings › MCP Configuration**. If Hamloy is refused there, ask them to add `https://hamloy.com/mcp`.

## The errors, one by one

- [The config is not valid JSON](https://hamloy.com/mcp-fix/config-not-valid-json)
- [No sign-in window opens](https://hamloy.com/mcp-fix/no-sign-in-window)
- ["This link doesn't work"](https://hamloy.com/mcp-fix/this-link-doesnt-work)
- [The server is added, but there are no tools](https://hamloy.com/mcp-fix/no-tools-after-connecting)
- [The token variable isn't read](https://hamloy.com/mcp-fix/token-variable-not-read)

## Check that it worked

Ask "What's open in Hamloy?" The agent calls the `list` tool and you get your lists back:

```
Pebble · 4 open, 1 done
backlog
  ## Streaks
  [] B-k3f9@2 Streak counter on the habit card (claimed by claude on streak-counter in pebble)
  [] B-m2xq@1 Share a streak as an image
requests
  [] R-q4ve@1 Create an Apple developer account
```

Setting it up from the start: [Cursor](https://hamloy.com/docs/cursor). To check a file line by line, paste it into the [MCP Config Validator](https://hamloy.com/mcp-config-validator).
