Linear MCP Server
An open-source Model Context Protocol server that enables interaction with the Linear API to manage issues, teams, and comments. It allows users to create, update, and search for issues while accessing workspace users and workflow states.
README
🚀 Linear-MCP-for-Gemini_CLI
A powerful, open-source Model Context Protocol (MCP) server specifically built to bridge Gemini CLI directly to your Linear workspace. Manage issues, teams, and workflows seamlessly through natural language, right from your terminal.
🌟 Features
- 🔍 Search & Discovery: Find issues across your entire workspace directly from Gemini CLI.
- 📝 Issue Management: Fetch, create, and update issues (status, priority, assignee, etc.) effortlessly.
- 💬 Collaboration: Add comments to issues without leaving your terminal.
- 🏢 Workspace Insights: List teams, users, and workflow states to provide full context to Gemini.
- ⚡ Real-time Integration: Built on the Model Context Protocol for low-latency, secure communication.
📋 Prerequisites
Before you begin, ensure you have the following installed:
- Node.js: Version 18.0.0 or higher.
- Gemini CLI: Installed and configured on your machine.
- Linear Account: With access to generate an API key.
📖 Complete Gemini CLI Integration Guide
This server is written in TypeScript. Because Gemini CLI requires a standard JavaScript executable to run MCP servers, we first need to download and "build" the project.
Follow these 4 steps to get everything connected.
Step 1: Download & Build the Server
-
Clone the repository to your machine:
git clone https://github.com/tenx-studio/Linear-MCP.git cd linear-mcp-open-source -
Install the required packages:
npm install -
Compile the code:
npm run build(Why do this? This command translates the TypeScript code into a
dist/index.jsfile, which is the exact file Gemini CLI will use to communicate with Linear).
Step 2: Get your Linear API Key
- Navigate to Settings > API > Personal API keys in your Linear workspace.
- Click New API key and give it a descriptive name (e.g., "Gemini CLI").
- Copy the key (you will need it for the final step).
Step 3: Connect to Gemini CLI (The Only Setup You Need)
Now we tell Gemini CLI where to find the built server and securely provide it with your API key. You do this by editing the Gemini CLI settings file.
-
Locate your Settings File: Open your file explorer or terminal and find the
.geminifolder in your user's home directory:- Windows:
%USERPROFILE%\.gemini\settings.json(e.g.,C:\Users\YourName\.gemini\settings.json) - Mac/Linux:
~/.gemini/settings.json(Note: If the.geminifolder orsettings.jsonfile does not exist yet, simply create them).
- Windows:
-
Add the Configuration: Open
settings.jsonin any text editor (like VS Code, Notepad, or TextEdit) and paste the followingmcpblock. If your file already has content, just add the"mcp"section inside the main{}brackets:
{
"mcp": {
"servers": {
"linear": {
"command": "node",
"args": ["/ABSOLUTE/PATH/TO/linear-mcp-open-source/dist/index.js"],
"env": {
"LINEAR_API_KEY": "lin_api_your_key_here"
}
}
}
}
}
⚠️ Crucial Adjustments:
args: You MUST replace/ABSOLUTE/PATH/TO/...with the actual, full path on your computer where you cloned this repository. (e.g.,"D:/Projects/linear-mcp-open-source/dist/index.js").LINEAR_API_KEY: Replacelin_api_your_key_herewith the exact API key you copied in Step 2.
Step 4: Start Chatting!
Close and reopen your terminal to restart your Gemini CLI session. The integration is now active!
Try asking Gemini CLI things like:
"List my Linear teams." "Find the issue about the login bug." "Create a new high priority issue in the Engineering team to update the README."
🤖 Auto-Connection Magic (How it Works)
You might be wondering: "Do I need to run npm start every time I want to use this? Do I need to manually set up a server connection?"
No! You do not have to do anything extra.
Adding the configuration block in Step 3 is the only setup required. Here is exactly what happens under the hood:
- Zero-Touch Startup: Because you added the configuration to your
settings.json, Gemini CLI natively acts as the host. - Background Execution: Every time you start a new Gemini CLI chat, it automatically spins up this Linear MCP server in a hidden background process.
- Secure Handshake: Gemini CLI reads the
"LINEAR_API_KEY"from your settings and securely injects it directly into the server. - Clean Shutdown: When you close Gemini CLI, the background server is automatically terminated.
You just configure it once in your settings, and the Model Context Protocol handles the entire lifecycle for you automatically!
🤝 Contributing
Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
📄 License
This project is licensed under the ISC License.
Built with ❤️ for the AI Developer Community.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。