Context Engineering MCP server

Memory and knowledgeData and AI

Context Engineering: Build Consistent, Accurate, Predictable AI Systems.

Your AI app calls the Context Engineering MCP server, which does the memory and knowledge and data and AI work and sends the result back to the chat.

About Context Engineering

Context Engineering is a community MCP server from bonigarcia, filed in our directory under memory and knowledge and data and ai. Context Engineering: Build Consistent, Accurate, Predictable AI Systems.

At a glance

Publisher
bonigarcia (community)
Runs
See the README for setup
Written in
Python
License
Apache-2.0
GitHub stars
197

How to set up Context Engineering

  1. Follow the install steps in the Context Engineering README; it is written in Python, so have that toolchain ready.
  2. Check the Context Engineering README for keys or settings; the registry lists none that Context Engineering requires.
  3. Add Context Engineering to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Context Engineering tools to confirm the connection.
  5. Run one read-only task with Context Engineering first, and keep your app asking before each tool call until the results look right.

Context Engineering compared with similar servers

  • Knowledge Base by willynikes2 has fewer GitHub stars than Context Engineering (190 against 197); both are community servers, and both run locally.
  • Sibyl Memory by Sibyl-Labs has more GitHub stars than Context Engineering (198 against 197); both are community servers, and both run locally.
  • Engraphis by Coding-Dev-Tools has fewer GitHub stars than Context Engineering (184 against 197); both are community servers, and both run locally.

Before you connect Context Engineering

  • Give Context Engineering its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Context Engineering tool call until you trust what it does with them.
  • Treat text that Context Engineering fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Context Engineering on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Context Engineering

How marketing and sales teams put Context Engineering to work, by company size. Pick the size closest to yours and start Context Engineering on one use case.

Small business

  • A small business can give Context Engineering its offers, FAQs and tone of voice once, so every draft starts from the same facts.
  • Founders can use Context Engineering to keep notes from calls and decisions, then ask what was agreed with a customer weeks later.
  • A small team can use Context Engineering to clean and enrich a lead list or a spreadsheet in one pass, instead of hours of copy and paste.
  • Context Engineering runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Marketing teams can connect Context Engineering to positioning docs and past campaigns, so agents write on message without a long prompt each time.
  • Sales and marketing can share one knowledge base through Context Engineering, so answers about pricing and features match across teams.
  • Marketing ops can connect Context Engineering to enrich and score inbound leads, so sales sees fit and intent before the first call.
  • Start Context Engineering on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises can use Context Engineering with permissions that follow the source documents, so an agent only recalls what the person asking may see.
  • Large orgs can make Context Engineering the approved memory layer for agents, with retention rules and a way to delete what shouldn't be kept.
  • Enterprises can run Context Engineering inside their own cloud and data boundary, so models and data stay where governance requires.
  • Context Engineering is a community server, so have security review the code and pin a version before Context Engineering touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Context Engineering README

From bonigarcia/context-engineering on GitHub, shared under its Apache-2.0 license. Images are left out; the original has them.

README.md

Context Engineering

Context engineering can be defined as the practice of designing systems that provide a Large Language Model (LLM) and AI agents with all the necessary information to complete a task effectively. It goes beyond prompt engineering since it focuses on building a comprehensive and structured context from various sources like instructions, external knowledge, memory, tools, and state. The central idea is that the success of a complex LLM-based system depends more on the quality and completeness of the context provided than on the specific wording of the prompt itself.

Tobi Lütke, the CEO of Shopify, coined the term context engineering in a tweet on June 19, 2025. He defined context engineering as the art of providing all the context for the task to be plausibly solvable by the LLM. This novel concept captures the essence of the current evolution of LLM-based systems, inspiring others (like me) to understand and define this emerging discipline. Since then, I've been working on a book entitled Context Engineering: Build Consistent, Accurate, Predictable AI Systems, published by Manning.

v1.0.0, This commit is the snapshot sent to the printer for the first print edition of the book. Subsequent updates will appear on the main branch.

This GitHub repository is intended to be a companion resource for this book and a reference for practitioners looking to understand and adopt the context engineering principles.

Table of contents

This book aims to provide a strong, general-purpose theoretical foundation for context engineering, supported by hands-on examples. Its table of contents is the following:

  1. Introduction to context engineering
  2. Instructions for AI agents
  3. External knowledge and retrieval
  4. Tools in AI agents
  5. Memory and state in agentic systems
  6. User prompts for LLMs
  7. Context management and orchestration
  8. Evaluation and observability
  9. Governance and operations
  10. AI frameworks for context engineering
  11. Context engineering for software development
  12. The state of the art in context engineering
    Appendix A. The AI ecosystem
    Appendix B. References and further reading

Each chapter of this book begins by explaining the underlying principles and patterns of each thematic block. The final part of each chapter then presents specific examples, all of which are available in this GitHub repository. New examples will continue to be added, and existing ones maintained, even after the book is published. The goal is to provide an open-source, up-to-date reference for everyone interested in context engineering.

Examples

This repository organizes examples by chapter to help you explore context engineering concepts in practice.

Chapter 1. Introduction to context engineering

This chapter provides the foundations for interacting with different model providers:

Chapter 2. Instructions for AI agents

This chapter covers the definition and usage of instructions (system prompts, agent skills, instructions artifacts) as a foundation layer to shape the model behavior:

Chapter 3. External knowledge and retrieval

This chapter explores different patterns for providing external knowledge to a model:

Chapter 4. Tools in AI agents

This chapter focuses on extending the capabilities of AI agents through tools:

Chapter 5. Memory and state in agentic systems

This chapter explores how to maintain information across interactions using memory and state:

Chapter 6. User prompts for LLMs

This chapter focuses on the design and optimization of user prompts, including techniques like few-shot prompting, prompt chaining, Chain-of-Thought, or ReAct:

Chapter 7. Context management and orchestration

This chapter focuses on managing and orchestrating context in complex agentic systems, including context compression, hierarchical context, or multi-agent patterns:

Chapter 8. Evaluation and observability

This chapter covers evaluation and observability for context-aware systems:

Chapter 9. Governance and operations

This chapter covers governance, human oversight, and operational patterns for context-aware systems:

Chapter 10. AI frameworks for context engineering

This chapter covers specific AI frameworks that facilitate context engineering, including application frameworks, agent orchestration frameworks, and AI application platforms:

Chapter 11. Context engineering for software development

This chapter shows how context engineering supports the software development lifecycle (SDLC) through reusable skills, instruction artifacts, external documentation retrieval, orchestration layers, and specialized agents:

Chapter 12. The state of the art in context engineering

This chapter covers mathematical foundations, open research challenges, technical innovation frontiers, domain-specific applications, and future directions:

Agent skills

The skills folder contains a collection of agent skills that apply the methods of each chapter (from Chapter 2 to Chapter 9) to your own agents. Each skill reviews one artifact you already have, such as an AGENTS.md file, a set of tool definitions, a RAG pipeline, or the context of an agent, and returns a report of findings linked to the book section that explains them. The skills follow the open Agent Skills format, so they work in Claude Code, Codex, Cursor, and other compatible agents, and the repository can be installed as a Claude Code or Codex plugin:

/plugin marketplace add bonigarcia/context-engineering
/plugin install context-engineering-skills@context-engineering

See the skills README for the full list, manual installation, and the evaluation harness, or browse the skills catalog.

Online resources

This repository includes interactive web pages that complement the book and help you apply context engineering concepts in practice.

1. AI Ecosystem

🔗 https://bonigarcia.dev/context-engineering/ai-ecosystem.html

Curated collection of the AI ecosystem:

  • Browse model families, agents, frameworks, and tooling in one place
  • Search across the appendix snapshot by name, feature, license, or pricing

This page is a companion index for the Appendix A and is designed to stay easy to maintain as the ecosystem changes.

2. Context-Aware Prompt Builder

🔗 https://bonigarcia.dev/context-engineering/context-aware-prompt-builder.html

Design, compare, and reuse structured prompts across multiple frameworks and AI models:

  • Build prompts using established frameworks (10-step, COSTAR, CRISPE, RTF, etc.)
  • Switch frameworks dynamically while preserving intent
  • Import/export prompts as JSON
  • Measure approximate context usage for different models
  • Load curated prompt samples for common SDLC roles

This tool is especially useful for creating and iterating on prompts in a structured, repeatable way.

3. SDLC Prompt Library

🔗 https://bonigarcia.dev/context-engineering/sdlc_prompt_library.html

Browse a curated library of prompts organized around the software development lifecycle (SDLC), including roles for architect, developer, debugger, reviewer, refactorer, tester, and documenter:

  • Explore prompts visually using a card-based interface
  • Filter by framework (10-step, COSTAR, CRISPE, RTF)
  • Inspect full structured prompts for each role
  • Copy prompts directly for reuse or adaptation

This tool is designed as a reference library, helping you understand how structured prompts vary across roles and frameworks.

4. Context Engineering Radar

🔗 https://bonigarcia.dev/context-engineering/context-engineering-radar.html

An interactive dashboard to explore and track concepts, sources, frameworks, and publications in the field of context engineering:

  • Circular radar visualization using SVG geometry and polar coordinates mapping
  • Classify resources across Primary, Secondary, and Tertiary ring levels
  • Group items in distinct quadrants: Literature, Frameworks, Models, and Communities
  • Dynamic searching, category filters, and detailed description modal overlays
5. Further Reading

🔗 https://bonigarcia.dev/context-engineering/references.html

Searchable catalog of articles, books, repositories, tutorials, and other references related to context engineering, prompting, agents, and AI engineering: context engineering, AI agents, machine learning, prompt engineering, RAG, generative AI, MCP, AI-assisted development, LLMs, memory, retrieval, multi-agent systems.

6. Agent Skills

🔗 https://bonigarcia.dev/context-engineering/agent-skills.html

Catalog of installable agent skills that apply the methods of the book to your own agents:

  • Browse nine skills, from Chapter 2 (instructions and skills) to Chapter 9 (governance)
  • See what each skill reviews and what it returns
  • Copy the commands to install all skills as a plugin or a single skill by hand
  • Search by name, chapter, or the kind of artifact a skill reviews

The data of this page is generated from the skills in the skills folder.

Contributing

If you think something should be improved or want to contribute to this repo, please open a pull request. Any comments or feedback are welcome.

About

context-engineering (Copyright © 2025-2026) is an open-source project created and maintained by Boni Garcia, licensed under the terms of Apache 2.0 License.

Questions about Context Engineering

What is the Context Engineering MCP server?

Context Engineering: Build Consistent, Accurate, Predictable AI Systems. Context Engineering is maintained by bonigarcia on GitHub at bonigarcia/context-engineering, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Context Engineering MCP server?

Context Engineering doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (bonigarcia/context-engineering). Like most servers, Context Engineering ends with a command or URL you paste into your AI app's MCP config.

Does Context Engineering need an API key?

The registry lists no required keys for Context Engineering. Check the Context Engineering README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Context Engineering an official MCP server?

No. Context Engineering is a community server maintained by bonigarcia. Community servers can be excellent; read the code and the open issues before you give Context Engineering access to company data.

What license is Context Engineering under?

Context Engineering is released under the Apache-2.0 license, according to its GitHub repository. The license covers the code of Context Engineering; the service it connects to has its own terms.