# OpenCode MCP server

> An open-source AI coding agent that reads repositories, edits files, and executes commands across various LLM providers.

- Repository: https://github.com/wesammustafa/opencode-primer
- Page: https://hostedmcp.org/servers/wesammustafa/opencode-primer
- Transport: —
- Stars: 414
- License: MIT

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `CONTEXT7_API_KEY` | no | no |  |

## FAQ

### What makes OpenCode different from a chat UI?

OpenCode can read your actual repository using built-in tools, edit files in place with diff-awareness, and run your local stack like tests and linters.

### Is OpenCode a replacement for GitHub Copilot?

No, OpenCode is a conversational agent rather than an inline autocomplete tool. It is meant to be used alongside or instead of autocomplete-style tools.

### How do I set up project-specific rules?

You can use the `/init` command to generate an AGENTS.md file, which serves as your project's house rules that OpenCode reads every session.
