Mcp Builder logo

Mcp Builder

Organization
LangConfig
mcp-builder

Comprehensive guide for creating Model Context Protocol (MCP) servers. Use when building MCP servers, integrating external APIs, or creating tool interfaces for LLMs.

Overview

PublisherLangConfig
Repositorylangconfig
Skill namemcp-builder
Stars
69
Forks
19
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by LangConfig on GitHub. Read the source before you install it.

Installation

Install the Mcp Builder AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/LangConfig/langconfig.git /tmp/langconfig
mkdir -p .claude/skills
cp -r /tmp/langconfig/backend/skills/builtin/mcp-builder .claude/skills/mcp-builder
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Mcp Builder in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Mcp Builder on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Mcp Builder is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Instructions

You are an expert MCP server developer. Follow this four-phase process when creating MCP servers:

Phase 1: Research and Planning

Before writing code, thoroughly understand:

  1. API Analysis

    • Study the target API documentation completely
    • Identify authentication methods (OAuth, API keys, tokens)
    • Map out rate limits and pagination patterns
    • Note any webhooks or real-time features
  2. Tool Design Principles

    • Balance comprehensive endpoint coverage with specialized workflow tools
    • Use action-oriented naming: get_, create_, update_, delete_, list_, search_
    • Group related operations logically
    • Design for agent flexibility, not just human convenience
  3. Framework Selection

    • TypeScript (Recommended): Superior SDK support, better type safety
    • Python: Good for data-heavy integrations, familiar to ML engineers

Phase 2: Implementation

TypeScript Project Structure
my-mcp-server/
├── src/
│   ├── index.ts          # Entry point
│   ├── tools/            # Tool implementations
│   │   ├── index.ts
│   │   └── [feature].ts
│   ├── types/            # Type definitions
│   └── utils/            # Helpers (auth, pagination)
├── package.json
└── tsconfig.json
Core Implementation Patterns

1. Tool Definition with Zod Schema:

typescript
import { z } from "zod";

const GetUserSchema = z.object({
  userId: z.string().describe("The unique user identifier"),
  includeDetails: z.boolean().optional().describe("Include extended profile")
});

server.tool(
  "get_user",
  "Retrieve user profile by ID",
  GetUserSchema,
  async ({ userId, includeDetails }) => {
    // Implementation
  }
);

2. Error Handling:

typescript
try {
  const response = await api.request(endpoint);
  return { content: [{ type: "text", text: JSON.stringify(response) }] };
} catch (error) {
  if (error.status === 429) {
    return { content: [{ type: "text", text: "Rate limited. Retry in 60s." }] };
  }
  throw new McpError(ErrorCode.InternalError, error.message);
}

3. Pagination Helper:

typescript
async function* paginate<T>(fetcher: (cursor?: string) => Promise<PageResponse<T>>) {
  let cursor: string | undefined;
  do {
    const page = await fetcher(cursor);
    yield* page.items;
    cursor = page.nextCursor;
  } while (cursor);
}

4. Tool Annotations:

typescript
server.tool("delete_resource", "Permanently delete a resource", schema, handler, {
  annotations: {
    destructiveHint: true,
    idempotentHint: false,
    readOnlyHint: false
  }
});
Python Project Structure
my-mcp-server/
├── src/
│   └── my_mcp_server/
│       ├── __init__.py
│       ├── server.py     # Main server
│       └── tools/        # Tool modules
├── pyproject.toml
└── README.md

Python Tool Definition:

python
from mcp.server import Server
from pydantic import BaseModel, Field

class GetUserInput(BaseModel):
    user_id: str = Field(description="The unique user identifier")

@server.tool()
async def get_user(input: GetUserInput) -> str:
    """Retrieve user profile by ID."""
    user = await api.get_user(input.user_id)
    return json.dumps(user)

Phase 3: Testing and Validation

  1. Build Verification:

    bash
    # TypeScript
    npm run build
    
    # Python
    python -m py_compile src/**/*.py
  2. MCP Inspector Testing:

    bash
    npx @anthropic/mcp-inspector
  3. Integration Testing:

    • Test each tool with valid inputs
    • Test error cases (invalid IDs, auth failures)
    • Verify pagination works correctly
    • Check rate limit handling

Phase 4: Documentation and Evaluation

  1. README Requirements:

    • Clear installation instructions
    • Environment variable documentation
    • Example usage for each tool
    • Troubleshooting section
  2. Evaluation Questions: Create 10 complex, realistic questions that verify LLM effectiveness:

    • Questions must be read-only (no mutations)
    • Answers must be verifiable
    • Cover different tool combinations
    • Test edge cases

Examples

User asks: "Help me build an MCP server for the GitHub API"

Response approach:

  1. Identify key GitHub operations: repos, issues, PRs, users
  2. Design tools: list_repos, get_issue, search_code, get_pr_diff
  3. Implement OAuth or PAT authentication
  4. Add pagination for list operations
  5. Include rate limit handling (5000 req/hour)
  6. Test with MCP Inspector
  7. Document required scopes for each tool

User asks: "I need to integrate Slack with my agents"

Response approach:

  1. Map Slack Web API endpoints needed
  2. Design tools: send_message, list_channels, search_messages, upload_file
  3. Implement Bot Token authentication
  4. Handle Slack's cursor-based pagination
  5. Add socket mode for real-time events (optional)
  6. Test message formatting (blocks, attachments)

Frequently asked questions

What does the Mcp Builder AI skill do?

Comprehensive guide for creating Model Context Protocol (MCP) servers. Use when building MCP servers, integrating external APIs, or creating tool interfaces for LLMs.

Why use Mcp Builder on TypingMind?

Because you install it once and use it with any model. Mcp Builder is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Mcp Builder in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/LangConfig/langconfig/tree/main/backend/skills/builtin/mcp-builder. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Mcp Builder?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Mcp Builder?

As many as you like. As long as a model supports skills, you can use Mcp Builder with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Mcp Builder AI skill free?

Yes. It is published on GitHub by LangConfig under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇