Skip to main content

MCP Configuration

Model Context Protocol (MCP) connects your AI agent to external tools, APIs, and services. The Desktop App (Code Mode), VS Code Extension, and CLI all share a single MCP configuration file, so you only set things up once.

Config File Locations​

LevelPathScope
User~/.abacusai/mcp.jsonAll projects for the current user
Project./.abacusai/mcp.jsonCurrent project directory only

Servers from both files are merged. When the same server name appears in both, the user-level entry is used.

Format​

Each entry under mcpServers is a named server. There are two types:

  • Local (stdio) - runs a command on your machine. Uses command, args, and optionally env.
  • Remote (HTTP) - connects to a network endpoint. Uses url and optionally headers.
{
"mcpServers": {
"github": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "<YOUR_TOKEN>"
}
},
"brave-search": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-brave-search"],
"env": {
"BRAVE_API_KEY": "<YOUR_KEY>"
}
},
"analytics-api": {
"url": "https://api.example.com/mcp",
"headers": {
"Authorization": "Bearer <YOUR_TOKEN>"
}
}
}
}

Field Reference​

Local servers (stdio)

FieldTypeRequiredDescription
commandstringYesExecutable to run (npx, python, node, etc.)
argsstring[]YesArguments passed to the command
envobjectNoEnvironment variables (API keys, tokens)

Remote servers (HTTP)

FieldTypeRequiredDescription
urlstringYesURL of the remote MCP server
headersobjectNoHTTP headers for authentication

Other Ways to Add Servers​

MethodWhere
/mcp add, /mcp remove, /mcp list, /mcp authInside a CLI session. Writes to mcp.json.
abacusai --mcp-config <file>Adds a config file for one session
MCP Servers section of the Abacus Settings page in VS CodeAdd, edit and remove servers, or open mcp.json
"External MCP configs" settingAlso read servers you already set up in Cursor, VS Code, Claude Desktop or Windsurf. Off by default. See Settings.

To allow or block a specific MCP tool without being asked, add a permission rule such as mcp__github__create_issue.

Finding MCP Servers​

Browse available servers at:

Best Practices​

  • Store tokens in env or headers rather than hardcoding them in args.
  • Start with one or two servers. Too many tools can overwhelm the model context.
  • For team projects, commit .abacusai/mcp.json with project-specific servers but leave secrets out. Each developer supplies their own keys in the user-level file.
  • Verify a server works by asking the agent a simple question that uses it.

Troubleshooting​

If a server isn't connecting:

  1. Check that the command or url is correct.
  2. Make sure required API keys/tokens are filled in (env or headers).
  3. For local servers, confirm the command is in your PATH (npx, node, python).
  4. Validate the JSON. A missing comma or bracket is the most common issue.

For further help, reach out at support@abacus.ai.