VS Code + agimem
Give GitHub Copilot in VS Code persistent memory across coding sessions.
VS Code with GitHub Copilot supports MCP servers, letting your AI coding agent connect to external tools. With agimem, Copilot can remember your project's architecture, conventions, debugging context, and preferences — persisting across sessions so you spend less time re-explaining and more time building.
Setup in 4 steps
Create a Capsule on agimem
Sign up at agimem.dev and create a Capsule from the dashboard. Create one per project or one shared Capsule for all your work.
Generate an API key
Click your Capsule and generate an API key starting with mcp_. Copy it immediately — it's only shown once.
Add the MCP server to VS Code
Create a .vscode/mcp.json file in your workspace, or open Settings and add the MCP server config. Paste the configuration below with your API key.
Start using memory
Copilot now has access to agimem's memory tools. Ask it to store project conventions or architecture notes, and they'll carry over to every future session.
Fastest way: paste a prompt
Give this prompt to your VS Code agent and it will configure everything automatically:
Agent prompt
Read the instructions at https://agimem.dev/setup and follow them to configure the memory MCP server for this project.
Manual configuration
Add this to your VS Code MCP configuration. Create a .vscode/mcp.json file in your project root, or configure it in VS Code settings:
.vscode/mcp.json
{
"mcpServers": {
"agimem": {
"url": "https://agimem.dev/api/mcp",
"headers": {
"Authorization": "Bearer mcp_your_api_key"
}
}
}
}What your agent can do with agimem
Frequently asked questions
Does VS Code support MCP servers?
Yes. VS Code supports MCP servers through GitHub Copilot's agent mode. You can configure remote MCP servers like agimem via .vscode/mcp.json or VS Code settings.
Project-level or user-level config?
Use project-level (.vscode/mcp.json) for project-specific memory, or configure in VS Code user settings for a global memory that works across all workspaces.
Can I use this alongside Cursor or Windsurf?
Yes. Point any MCP-compatible client at the same Capsule and they share the same memory. Your agent's context stays in sync across editors.
Ready to get started?
Create a free Capsule and connect VS Code in under a minute.