Daydreams

v1.0.0Business Applicationsstable

Daydreams is a set of tools for building agents for commerce

8004agent-frameworkagent-frameworksagentsai
Share:
606
Stars
0
Downloads
0
Weekly
0/5

What is Daydreams?

Daydreams is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to daydreams is a set of tools for building agents for commerce

Daydreams is a set of tools for building agents for commerce

This server falls under the Business Applications category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Daydreams is a set of tools for building agents for commerce

Use Cases

Agent framework for commerce
ERC-8004 token support
Gaming and CDP integration
daydreamsai

Maintainer

LicenseMIT
Languagetypescript
Versionv1.0.0
UpdatedMay 15, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx daydreams

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Daydreams

Daydreams is a TypeScript-first AI agent framework centered on composable context architecture, letting developers build scalable agents for commerce, gaming, and on-chain applications by composing isolated context modules that combine memory, actions, and instructions. It provides a Dreams Router that serves as a universal AI gateway for OpenAI, Anthropic, Google, Groq, and others with USDC micropayment support, and integrates natively with Model Context Protocol servers via a createMcpExtension helper. Teams building autonomous commerce agents or on-chain workflows use it to avoid the context-switching and state-management problems that plague traditional agent architectures.

Prerequisites

  • Node.js 18 or later and a package manager (npm, pnpm, or bun)
  • TypeScript project setup
  • API key for at least one supported LLM provider (OpenAI, Anthropic, Google, Groq, etc.)
  • Optional: a funded wallet and Base Sepolia RPC endpoint for x402 micropayment features
  • An MCP client or server if using the MCP integration extension
1

Install the core Daydreams package

Add the @daydreamsai/core package to your TypeScript project.

npm install @daydreamsai/core
# or
pnpm add @daydreamsai/core
2

Install optional extensions

Add the MCP extension to connect your Daydreams agent to external MCP servers, or the ai-sdk-provider for Dreams Router access.

npm install @daydreamsai/mcp @daydreamsai/ai-sdk-provider
3

Create an agent with a context

Define a context with state, actions, and instructions, then create an agent using createDreams. The model can be any AI SDK-compatible provider.

import { createDreams, context, action } from "@daydreamsai/core";
import { openai } from "@ai-sdk/openai";

const myContext = context({
  type: "support",
  create: () => ({ tickets: [] }),
}).setActions([
  action({
    name: "createTicket",
    schema: { issue: z.string() },
    handler: async ({ issue }, ctx) => {
      ctx.memory.tickets.push(issue);
      return { created: true };
    },
  }),
]);

const agent = createDreams({
  model: openai("gpt-4o"),
  contexts: [myContext],
});
4

Add MCP server integration (optional)

Use createMcpExtension to connect your Daydreams agent to any external MCP server for filesystem, database, or tool access.

import { createMcpExtension } from "@daydreamsai/mcp";

const agent = createDreams({
  model: openai("gpt-4o"),
  extensions: [
    createMcpExtension([
      { name: "filesystem", command: "npx", args: ["-y", "@modelcontextprotocol/server-filesystem", "/workspace"] }
    ])
  ],
  contexts: [myContext],
});
5

Send a message to the agent

Invoke the agent by sending a structured input targeting a context and its arguments.

await agent.send({
  context: myContext,
  args: { customerId: "user-123" },
  input: "I need help with my recent order",
});

Daydreams Examples

Client configuration

Package.json dependency block and minimal agent bootstrap for a Daydreams TypeScript project.

{
  "dependencies": {
    "@daydreamsai/core": "latest",
    "@daydreamsai/mcp": "latest",
    "@ai-sdk/openai": "latest",
    "zod": "^3"
  }
}

Prompts to try

Example agent tasks and integration ideas that showcase Daydreams' composable context model.

- Build a customer support agent that composes an analytics context and a ticketing context into a single conversation
- Create an on-chain commerce agent that accepts USDC micropayments via the Dreams Router
- Connect a Daydreams agent to a filesystem MCP server to let it read and write project files autonomously
- Compose a research context and a writing context so the agent gathers data then drafts a report in one session
- Use dreamsRouter to route requests across OpenAI, Anthropic, and Groq automatically based on availability

Troubleshooting Daydreams

Agent framework described in the README is marked as obsolete

The repository README notes the core agent framework is no longer the primary focus. For new projects the maintainers recommend the lucid-agents repo (https://github.com/daydreamsai/lucid-agents) combined with the Pi agent harness for the agent runtime.

MCP extension fails to connect to the external server

Verify the command and args in createMcpExtension exactly match how you would run the MCP server from the terminal. The extension spawns the server as a child process, so the binary must be accessible on PATH.

TypeScript compilation errors with zod schema in action definitions

Ensure zod 3.x is installed and that you import z from 'zod'. The action schema parameter expects a Zod object schema, not a plain object literal.

Frequently Asked Questions about Daydreams

What is Daydreams?

Daydreams is a Model Context Protocol (MCP) server that daydreams is a set of tools for building agents for commerce It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Daydreams?

Follow the installation instructions on the Daydreams GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Daydreams?

Daydreams works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Daydreams free to use?

Yes, Daydreams is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Daydreams Alternatives — Similar Business Applications Servers

Looking for alternatives to Daydreams? Here are other popular business applications servers you can use with Claude, Cursor, and VS Code.

n8n

189.1k

A comprehensive MCP server that provides full control over n8n automation workflows through natural language. It offers 43 tools for managing workflows, executions, credentials, and data tables, with safety features like write-mode protection and dou

LobeHub

77.5k

🤯 LobeHub is your Chief Agent Operator, organizing your agents into 7×24 operations by hiring, scheduling, and reporting on your entire AI team.

Jeecgboot

46.4k

AI 低代码平台,「低代码 + 零代码」双模式驱动:低代码一键生成前后端代码,零代码 5 分钟搭建系统,AI Skills 一句话画流程、设计表单、生成整套系统。内置 AI聊天、知识库、流程编排、MCP插件等,兼容主流大模型。引领「AI 生成 → 在线配置 → 代码生成 → 手工合并->AI修改」开发模式,消除 Java 项目 80% 的重复工作,提效而不失灵活。

CowAgent

44.7k

CowAgent (chatgpt-on-wechat) 是基于大模型的超级AI助理,能主动思考和任务规划、访问操作系统和外部资源、创造和执行Skills、通过长期记忆和知识库不断成长,比OpenClaw更轻量和便捷。同时支持微信、飞书、钉钉、企微、QQ、公众号、网页等接入,可选择DeepSeek/OpenAI/Claude/Gemini/ MiniMax/Qwen/GLM/LinkAI,能处理文本、语音、图片和文件,可快速搭建个人AI助理和企业数字员工。

Minds Platform

39.2k

Platform dedicated to building an open foundation for applied Artificial Intelligence, designed for people seeking production-ready AI systems they can truly control, extend and deploy anywhere.

Astrbot

32.8k

AI Agent Assistant & development framework that integrates lots of IM platforms, LLMs, plugins and AI feature, and can be your openclaw alternative. ✨

Browse More Business Applications MCP Servers

Explore all business applications servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "daydreams": { "command": "npx", "args": ["-y", "daydreams"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Daydreams?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides