The Model Context Protocol (MCP) is an open standard for connecting large language models (LLMs) to external tools, data sources, and APIs. MCP servers implement the MCP. They act as standardized interfaces that allow language models to communicate with external applications or systems—similar in concept to APIs, but specifically designed for LLM-driven interactions.
With Tabnine Agent, these are managed in a similar manner to creating guidelines, through a specific file.
MCP Server Configuration
MCP servers are configured through a JSON file under the .tabnine folder in your project root:
First, enter the same /.tabnine/ directory inside your project directory.
.tabnine/mcp_servers.json can also be placed in the home directory:
~/.tabnine/mcp_servers.json
To direct to specific MCP servers, create the mcp_servers.json file, which will follow this structure here:
In that mcp_servers.json file, list each server you want to include. For each server mentioned in the file, Tabnine Agent requires the following configuration components:
mcp_server — this is the top-level container
<server-name> – the name of the server itself
command – the script command that launches the server
Optional fields include:
args – command line arguments (with no spaces, otherwise they’ll be treated as separate paths)
env – environment key-value pairs
Here is an example of that structure filled in with variables for Jira:
Supported Transport Layers
The service automatically detects the transport type based on your configuration:
Detected Transport
Configuration Field
Use Case
STDIO
command present
Local MCP servers, CLI tools
Streamable HTTP
url present
Modern remote APIs
SSE
transport: "sse"
Legacy remote servers
Commonly Used MCP Servers
There are dozens of available MCP integrations on the market, official MCP servers for individual third parties. Here are a few of commonly used ones:
Some MCP servers can silently fail OAuth authentication after a token is revoked on the provider side. When this happens, the local cached OAuth credentials remain in place, and the OAuth flow is not automatically re-triggered.
These cached OAuth credentials are stored in the .mcp_auth folder in your home folder. The fix is to remove the .mcp-auth folder. This removes all cached credentials and will force all new OAuth flows to retrigger.
Delete the .mcp_auth folder from the user’s home directory. This clears all cached OAuth credentials. The next MCP action requiring authentication will correctly trigger a fresh OAuth flow.