MCP connectors: how to pick, configure and use them
Pick a connector for the failure you actually hit, add it once, and let every agent you use read the same project.
An MCP connector is a server that gives an AI coding agent new tools through the Model Context Protocol. The agent, such as Claude Code, Cursor or Codex, connects to it as a client, reads the list of tools it offers, and calls them when a task needs them: reading project memory, opening a pull request or running a command.
This guide covers the four kinds of connectors coding agents use, how to choose one, how to add it in the three most common clients, and how to keep credentials out of the conversation.
How does an MCP connector work?
An MCP connector works as a server in a client-server exchange defined by the Model Context Protocol specification. The agent is the client. It connects to the server, which advertises tools with a name, a description and an input schema. When the model decides a tool is relevant, the client calls it, the server performs the action, and the result goes back into the model's context.
The value is reuse. Without MCP, every link between an agent and a service is custom glue code. One MCP server works with any compliant client, so the connector you add to Cursor today also serves Claude Code tomorrow.
Which kinds of MCP connectors do coding agents use?
Most connectors used for software work fall into four groups:
| Kind | What the agent gets | What it should not see |
|---|---|---|
| Project memory | Decisions, current state and history shared across sessions and tools | Other projects |
| GitHub and code | Repository files, pull requests, history | Repositories outside the task |
| Secrets | The ability to call a service with a credential | The credential itself |
| Servers and infrastructure | Commands, logs and deployments on declared machines | An open shell nobody records |
Project memory connectors keep the context that otherwise lives in your head: why a choice was made, what state the project is in, what comes next. A fresh conversation reads it instead of you re-explaining. Fileaify works this way: the project lives in a hosted workspace that agents reach over REST or through the Fileaify MCP connector. It complements repository instruction files, as the comparison with AGENTS.md and CLAUDE.md explains.
GitHub and code connectors answer "what does the code look like now" without pasting diffs. Secrets connectors sign a request with a key the model never receives. Infrastructure connectors run work on a server within declared limits.
How do you choose the right MCP connector?
Choose from the failure you keep hitting, not from a feature list. The usual ones are: context lost between agents, keys pasted into prompts, a server session you have to babysit, and a lesson one agent learned that the next one learns again.
Score each candidate on four questions:
- Which of those failures does it fix?
- How long until the first useful call?
- Does the agent see more than the task needs, credentials included?
- If you close the session and open a different agent tomorrow, is the state still there?
A connector that is quick to set up but keeps nothing between sessions only moves the re-explaining somewhere else.
What does Fileaify score on these questions?
Fileaify targets the first and third failures together. Its MCP server is remote, at https://fileaify.com/mcp, so there is no local process to keep running. You add the address to your client and approve the connection in the browser with OAuth; there is no key to paste. The agent then reads the project's documents and decisions, proposes changes that your publication policy reviews, and requests access to services when a task needs it. Keys stay in the vault: the agent writes a vault://service/key reference and the server uses the value. Where the plan includes it, the executor runs tests and deployments with those keys on the server side.
The trade-off is that it is a hosted service: the project context lives on Fileaify's infrastructure, encrypted, with an encrypted export you can recover offline on every plan.
How do you add an MCP connector step by step?
Register it in your client
Each client needs a name for the server, a transport and either a command (local server) or a URL (remote server).
- Claude Code:
claude mcp add --transport http <name> <url>for a remote server, orclaude mcp add <name> -- <command>for a local one (Claude Code MCP documentation). Theprojectscope shares the entry with the team through.mcp.json. - Cursor: an
mcpServersentry in.cursor/mcp.jsonfor one project or~/.cursor/mcp.jsonfor all of them, with aurlfield for remote servers (Cursor MCP documentation). - Codex: a
[mcp_servers.<name>]table in~/.codex/config.toml, orcodex mcp add <name> --url <url>for a remote server.
For a remote server that uses OAuth, such as Fileaify's, the client opens a browser page where you choose what to grant. In Claude Code, /mcp lists servers and handles the sign-in.
Check that it loaded
Restart or reload the client and list the available tools. In Claude Code, /mcp shows each server's status. If the server is connected but tools are missing, check that the transport in your configuration matches what the server offers.
Test one call end to end
Before letting it write, make one harmless call: read one document or one file through the connector and compare it with the source. Then open a second agent and confirm it sees the same state.
How is a project-memory connector different from a data connector?
Most connectors fetch something once. A database connector returns a row; a browser connector returns a page. The result lives only in the current conversation, and after compaction or a new session the agent starts from zero.
A project-memory connector keeps state between sessions and between agents. Decisions, known dead ends and the current state stay in one place, so Codex can pick up where Claude Code stopped. Repository files such as AGENTS.md do part of this by hand; they work well for build commands and conventions, and less well for a state that changes every week or for knowing which agent changed what.
How do MCP connectors keep API keys safe?
Why pasted keys are a problem
A key pasted into a prompt, or written to a file the agent reads, enters the model's context. From there it can be repeated in logs, in a compaction summary or in a later conversation with another tool. On a long project the same key gets pasted into each new tool, and nobody knows where it now lives. The OWASP Secrets Management Cheat Sheet recommends keeping secrets in a managed store, out of tickets, chats and logs.
Brokered access
With a broker, the server holds the credential. The agent asks for an action by name, the server attaches the key when it performs the request, and the model sees only the result. In Fileaify, using a key is its own permission: the agent requests it, a person approves it for a chosen duration, and the request is recorded and revocable.
Before trusting a connector with credentials, check three things: whether a key can ever reach model-visible context, whether access is scoped per key, and whether you can revoke access without rotating every secret you own.
When should you add a memory connector?
Add one when re-explaining the project costs more than setting it up. Solo work shows the signals first: you type the same brief into Claude Code, Cursor and Codex because each keeps its own history, or the agent forgets an earlier decision after compaction. Team work makes them louder: a teammate's agent repeats a dead end yours already hit, or nobody can say which version of a decision is current.
How do you keep connectors from filling the context window?
Every connected server adds its tool list to the context on each turn, and every tool result costs tokens when it comes back. Keep only the servers the day's work needs. In Claude Code, /context shows what fills the window, /compact summarizes the conversation, and /clear starts a new one.
A memory connector helps here as well: instead of loading the whole project history into the prompt, the agent retrieves only the sections the task needs, as the guide on persistent project memory with hybrid search shows. Write decisions down before you compact; whatever is not written is what you will explain again tomorrow.
Sources
- Model Context Protocol specification: the client, server and tool model every connector follows.
- Claude Code documentation: MCP:
claude mcp add, transports, scopes and OAuth through/mcp. - Cursor documentation: Model Context Protocol:
mcp.jsonlocations, remote servers and OAuth. - OWASP Secrets Management Cheat Sheet: keeping credentials out of conversations and logs.
Try it
The demo runs on a prepared project, with no account. To connect your own agent, create a free workspace and add https://fileaify.com/mcp to your MCP client, or give it https://fileaify.com/agent.
Common questions
Do MCP connectors work the same in Claude Code, Cursor and Codex?
Yes for the protocol: each client connects to a server and calls the tools it advertises. Registration differs: claude mcp add in Claude Code, .cursor/mcp.json or ~/.cursor/mcp.json in Cursor, and an [mcp_servers] table in Codex's config.toml or codex mcp add.
Can I use several MCP connectors in one session?
Yes. Clients accept several servers side by side. Every server's tool list costs context on each turn, so keep only the ones the current work needs and watch for overlapping tool names.
Does an MCP connector see my API keys?
It depends on the server. A brokered design keeps the key on the server side and returns only the result. If a setup asks you to paste a key into the chat or a file the agent reads, treat that key as exposed.
Does connecting Fileaify's MCP connector give the agent my secrets?
No. The consent screen grants no secret value and no permission to use a secret. Using a key is a separate request that a person approves for a chosen duration.
Written with AI assistance, reviewed by Stéphane Mermet and checked against the product. Fileaify publishes this guide and sells the service it describes.