← Back to Blog

MCP Server Integration Playbook: Feishu, Notion & GitHub in Real Projects

(Unofficial)

This guide is independently community-maintained. It is not affiliated with, endorsed by, or sponsored by the vendor of the third-party tool it covers. All third-party trademarks are the property of their respective owners.

December 3, 2026
MCP Server Integration Playbook: Feishu, Notion & GitHub in Real Projects

TL;DR

Wire three MCP servers into Claude Code and the daily workflow stops being "copy and paste by hand":

  • Feishu (Lark) MCP server: the agent can read project documents and the context sitting in chat, and it can drop the conclusion back into the thread.
  • Notion MCP integration: specs and task pages are read and written directly, so the requirement never has to be re-typed into an issue.
  • GitHub MCP server: issues, pull requests, and review comments become agent-readable, so nobody hand-copies code-side progress either.

Together they run a requirement end to end: the requirement lives in Notion → the agent reads it → it opens an issue or a pull request on GitHub → the result goes back to the Feishu chat.

Wiring takes three steps: install the server → register it with the client → hand each server one token with just enough scope. Below are those three steps and a minimal working config, then what each server should own, how to keep permissions tight, and where this pipeline actually costs you money.

This piece is the follow-on to the single-server guide: if you have not installed an MCP server yet, start with Claude Code MCP server setup — it covers the install, claude mcp add, and how to pick a scope. This page assumes that part already works and stacks three servers on top of it.

1. What the three MCP servers do together

Straight answer: with Feishu, Notion, and GitHub all exposed as MCP servers, the agent can reach three places at once — where the requirement lives (Notion), where the code lives (GitHub), and where the humans talk (Feishu) — and it can send the result back to where it came from. (The per-server install and registration details are in Claude Code MCP server setup; this page picks up from there.) In practice that is three steps:

  1. Install the server: an MCP server is a standalone process (local stdio) or a remote service (HTTP / SSE) that declares which tools it offers.
  2. Register it with the client: claude mcp add, or hand-edit .mcp.json; the scope you pick decides whether the config stays on your machine, lives in the repository, or applies to every project.
  3. Issue credentials: one token per server, carrying only the permissions that server actually needs.

A minimal working configuration, all three side by side (keep the tokens in environment variables; do not commit them):

json
{
  "mcpServers": {
    "lark": {
      "command": "npx",
      "args": ["-y", "@larksuiteoapi/lark-mcp", "mcp", "-a", "<app_id>", "-s", "<app_secret>"],
      "env": { "LARK_TOOLS": "im.v1.message.create,im.v1.message.list,docx.v1.document.rawContent" }
    },
    "notion": {
      "command": "npx",
      "args": ["-y", "@notionhq/notion-mcp-server"],
      "env": { "NOTION_TOKEN": "<notion_token>" }
    },
    "github": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-github"],
      "env": { "GITHUB_PERSONAL_ACCESS_TOKEN": "<github_token>" }
    }
  }
}

Once that is in place, the three servers cover roughly three kinds of action:

  • Read: pull the requirement page through the Notion MCP integration, read issues and pull requests through the GitHub server, fill in context through the Feishu one.
  • Write: open an issue or a pull request on GitHub, write task state back in Notion.
  • Report: post the conclusion into the Feishu chat, or as a pull request comment.

What MCP is actually for: it wraps a set of external capabilities as tool declarations; the client (Claude Code and other coding clients) folds those declarations into its own tool set, and the model calls them the same way it calls built-in tools. Without that step, the only way to give a model context is to paste it in by hand.

Contents

  1. What the three servers do together
  2. Why MCP instead of yet another script
  3. What each of the three should own
  4. Credentials and permissions: one token per server
  5. The end-to-end run: Notion requirement to GitHub issue and PR
  6. Where this workflow actually costs you, and how model quota solves it
  7. FAQ
  8. Related resources
  9. Sources

2. Why MCP instead of yet another script

2.1 The client and server model

The split between an MCP client (your coding client) and the MCP servers behind it is fixed:

  • The server connects to the real system (the Feishu Open Platform, the Notion API, the GitHub API), wraps those endpoints as tools, and declares what each tool needs and what it returns.
  • The client starts or connects to the server, folds the tool list into the set the model can see, and passes parameters and credentials on every call.
  • The model decides which tool to call, fills in the arguments, and reads the result. It never touches your token — credentials stay on the client and server side.

That boundary is the point: swap models or clients and the server side rarely has to change.

2.2 Transports and scopes

  • Transport: a local server speaks stdio (the client starts it as a child process and talks over standard input and output); a remote server speaks HTTP / SSE (the client connects to a URL). The official Feishu and Notion servers default to stdio.
  • Scope: local (this machine only), project (written into .mcp.json at the project root — this one can be committed so the whole team shares it), user (every project on this machine). For a team, commit the project-scoped skeleton and keep credentials in each person's local environment.

2.3 What it buys you

  • One tool list, many models: changing models does not mean rewriting integrations.
  • Permissions you can narrow: tool granularity can be cut down to a single endpoint — the Feishu server can be limited to named tools or to a preset collection.
  • A clean fallback: if one server misbehaves, remove it from the config and the rest of the pipeline keeps running.

3. What each of the three MCP servers should own

The three phrasings people search for — mcp server feishu, mcp notion integration, mcp github server — map onto three separate capability lines. Draw the boundary before you connect anything, so no single server ends up responsible for everything.

3.1 Feishu (Lark): project documents and chat context

  • Owns: reading the raw content of cloud documents, searching documents, sending messages, reading chat history, querying Bitable records.
  • Does not own: changing code or deciding when to ship. That is GitHub's job, and a human's.
  • Watch out: the Feishu Open Platform's OpenAPI MCP tooling is still in Beta, so capabilities and parameters can move between releases. Per the official notes, editing a cloud document in place is not supported yet — importing and reading are. Check the official documentation for the day you wire it up.

3.2 The Notion MCP integration: specs and task pages

  • Owns: searching pages, reading page content, updating page properties, adding rows to a database (task state).
  • Requires: an internal integration, plus one manual "Connect" on the target page. Skip that step and tool calls come back with nothing — the most common reason a working setup reads empty.
  • Two shapes: the local stdio server (npx @notionhq/notion-mcp-server with NOTION_TOKEN) and the hosted Notion MCP with OAuth, where you do not manage tokens at all. Use the local one for personal debugging and the hosted one for a team.

3.3 GitHub: issues, pull requests, and reviews

  • Owns: reading issues, pull requests, and review comments, searching code, reading files, opening issues, raising pull requests, writing comments.
  • Requires: a PAT (personal access token). Read-only work gets a read-only scope; give write work a separate token rather than one over-privileged token for everything.
  • Watch out: GitHub also publishes a hosted server over HTTP with OAuth authorization, which suits a team that would rather not manage PATs. Follow GitHub's own documentation for the day you set it up.

4. Credentials and permissions: one token per server

An MCP server has exactly the permissions you hand it — that sentence is the reason this section exists. Three credentials, three boundaries:

  • Feishu: app_id plus app_secret for the application identity. When the agent has to read your own documents or post as you, use OAuth to obtain a user access token (lark-mcp login) and pass --scope with the exact scopes you need — leaving it off hands over every permission the application has already been granted.
  • Notion: an internal integration token (NOTION_TOKEN), plus the one-time Connect on each page. A leaked token means somebody else can read and write the pages you connected.
  • GitHub: a PAT. Keeping read and write on two separate tokens is the steadier setup; one all-powerful token sitting in a project config hands your repository write access away.

Two hard rules:

  1. Credentials do not enter the repository. .mcp.json carries the command and the arguments; the tokens live in environment variables or in a local secret store:
bash
# one credential per server — keep the secrets out of .mcp.json
export NOTION_TOKEN="ntn_..."
export GITHUB_PERSONAL_ACCESS_TOKEN="ghp_..."
  1. Allowlist the tools. LARK_TOOLS or -t on lark-mcp limits the server to the endpoints you need. Fewer tools means shorter responses, and section 6 explains why that lands directly on your bill.

The debugging shortcut: if the server connects but the tool list is empty, check scopes and the tool allowlist before you touch the client — in most cases the client is not the problem.

5. The end-to-end run: Notion requirement to GitHub issue and PR

This is the three MCP servers working together once, in the order it actually happens.

Step one · the requirement is in Notion: it lives in a page, with state kept in a database property. Make sure that page has been connected to your Notion integration.

Step two · one instruction: in Claude Code, give the goal, the boundaries, and the acceptance criteria.

text
Read the "order export" page in Notion and open an issue in codegateway/web against the
acceptance criteria, with the requirement link, the acceptance criteria, and the split-out
sub-tasks in the body. Do not change any code yet.

Step three · the agent reads the requirement: it calls Notion's search and page tools and pulls the raw requirement text and the acceptance criteria into context.

Step four · it writes back to GitHub: it calls the GitHub issue tool and hands you an issue URL. Let it open the issue first and forbid code changes — that single switch matters more than any prompt wording.

Step five · the pull request: once a human has read the issue, let it branch, push, and open a pull request that links back to the issue.

Step six · the result goes back to Feishu: it calls the Feishu message tool to post the issue and pull request links into the chat, and updates the Notion task state to "in progress".

Every write should hand you something durable — an issue URL, a pull request URL, a message ID — before the next step runs. Do not accept the agent's own summary as evidence. That discipline beats prompt engineering.

6. Where this workflow actually costs you, and how model quota solves it

6.1 Three problems you cannot engineer away

  • An agent can only act on what it can reach. The tools are its hands. No tool, no action — a strong model is just guessing.
  • Every tool call burns tokens. Tool results come back into the context, so an implementation that pulls a whole document or a whole diff inflates metered input noticeably.
  • One flaky upstream endpoint strands the whole pipeline. Rate limits, timeouts, and 5xx responses land at the worst possible moment, the task stops half-finished, and someone cleans up by hand.

6.2 Metered quota you can top up on demand

All three problems share one precondition: the model side must not run dry. You cannot freeze a live automation because an allowance window has not reset yet, or because one endpoint is temporarily unavailable. What that needs is metered quota you can top up on demand, plus one place to route traffic — not whatever a single subscription seat happens to have left in a given hour.

CodeGateway bills per token: no session window, pay for what you use; the account stops when the available balance runs out.

  • Consumption multiplier: official list price × 1.07x (as-of 2026-11-07, the live value on the pricing page).
  • Top-up service fee: 2% of the face value (as-of 2026-11-07); it does not reduce the credited amount.
  • Payment fees: charged separately by Stripe at roughly 3.9% + $0.30 per transaction (that is the third-party payment channel's rate, not a CodeGateway rate), itemized at checkout.

Pick the amount on the top-up page — custom amounts start at $5, with $10 / $20 / $50 / $100 presets — then create an API key in the dashboard, point Claude Code's ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN at it, and all three chains keep running. If you have not started yet, Get a CodeGateway key covers the top-up and the account in one step.

Payment methods. Supports credit card (Visa / Mastercard / AmEx), Stripe Link, and bank transfer; the checkout is provided by Stripe, and payment fees are itemized separately.

Why this workload suits per-token billing particularly well: MCP workflows are bursty with a long tail — nothing runs most of the time, and then one pass through the chain burns context and tool results at once. Metered billing turns that into a curve you can budget, instead of "the monthly allowance ran out and now the automation stops".

6.3 How we measure it: what we have not measured yet

Running the same three servers once, the cost splits into three parts: the input tokens of a single tool call, the total tokens of one end-to-end pass, and the retry cost when the chain breaks halfway. We do not have a repeatable sample set yet, so the readings in this section have not been taken — we would rather leave a visible gap than publish a number we cannot reproduce.

One observation we can take straight from the official documentation: the Feishu OpenAPI MCP notes warn that setting the tool description language to Chinese (-l zh) consumes more tokens than the English default. That is worth sitting with: the way you write the tool list itself lands on the bill, not only model output.

7. FAQ

Do all three servers need Node.js installed locally?

Most community and official servers ship as npm packages, so you need Node.js 18+ and npx. Hosted remote servers (HTTP transport) need no local runtime — your client only has to support a remote endpoint.

Is an MCP server better than the internal script I already have?

Usually it is an upgrade: wrap the script and it shows up in the tool list, callable by the model with arguments, instead of only running when a person runs it. The price is that the tool has to be narrow in scope and reversible.

Why not use a single token for everything?

Permissions and revocation. One token per system means revoking one does not touch the other two; one universal token means a single leak costs you access to all three at once.

Will heavy tool use burn through the tokens?

It can, and tool results are one of the main sources of metered input. Three habits keep it in check: allowlist only the endpoints you need, cap how much a single call can pull (page count, fields), and let the agent read in batches rather than pulling everything at once.

What stops the agent from opening issues and pull requests it should not?

Two steps: run read-only first, then open up writes; pin writes to specific repositories and branches; and require a link back on every write so a human can check it. The human in the loop is not optional.

How do I know a server is really connected, not just configured?

claude mcp list shows the connection state, /mcp in an interactive session lists the mounted servers and their tools, and then make one real call on a real task. Verify all three that way, one at a time.

9. Sources

On the numbers: Anthropic's and MCP's rules above follow the official documentation as published on 2026-11-07. CodeGateway's 1.07x multiplier and 2% top-up service fee are the live pricing page values as of 2026-11-07; when they change, the pricing page wins: the current rates are always on the pricing page.
Author:CodeGateway TeamReviewed on:2026-11-09

Solve API Key & Billing limits with CodeGateway

Lacking an official API key or facing overseas card payment issues? Create an sk-cg- key instantly. One key for Claude, GPT, Gemini, and DeepSeek: Claude and Gemini text models use the Anthropic Messages protocol (/v1/messages) — the OpenAI-compatible text endpoints do not accept them. Built-in smart routing and free trial credits included.

Sign up free